File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
examples/developer-hub-javascript Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11// Simple hex encoding
22function toHex ( data ) {
3- var result = "" ;
4- for ( var i = 0 ; i < data . length ; i ++ ) {
3+ let result = "" ;
4+ for ( let i = 0 ; i < data . length ; i ++ ) {
55 result += data . charCodeAt ( i ) . toString ( 16 ) ;
66 }
77 return result . padEnd ( 64 , "0" ) ;
@@ -28,11 +28,11 @@ async function prepareRequest() {
2828 } ,
2929 } ;
3030 const response = await fetch (
31- `${ BASE_URL } verifier/eth/EVMTransaction/prepareRequest` ,
31+ `${ VERIFIER_BASE_URL } verifier/eth/EVMTransaction/prepareRequest` ,
3232 {
3333 method : "POST" ,
3434 headers : {
35- "X-API-KEY" : API_KEY ,
35+ "X-API-KEY" : VERIFIER_API_KEY ,
3636 "Content-Type" : "application/json" ,
3737 } ,
3838 body : JSON . stringify ( requestData ) ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const firstVotingRoundStartTs = 1658429955;
66const votingEpochDurationSeconds = 90 ;
77
88// Valid only on coston. In production get the address from the ContractRegistry
9- const FDC_HUB_ADDRESS = "0x1c78A073E3BD2aCa4cc327d55FB0cD4f0549B55b" ;
9+ const FDC_HUB_ADDRESS = "0x1c78A073E3BD2aCa4cc327d55FB0cD4f0549B55b" ;
1010
1111async function submitRequest ( ) {
1212 const requestData = await prepareRequest ( ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ async function submitProof() {
2020}
2121
2222submitProof ( )
23- . then ( ( data ) => {
23+ . then ( ( ) => {
2424 console . log ( "Submitted proof" ) ;
2525 } )
2626 . catch ( ( e ) => {
You can’t perform that action at this time.
0 commit comments