Skip to content

Commit eb31b17

Browse files
committed
fix(formatting): resolve eslint errors
1 parent c8b052c commit eb31b17

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/developer-hub-javascript/fdc_prepare_request.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Simple hex encoding
22
function 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),

examples/developer-hub-javascript/fdc_submit_request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const firstVotingRoundStartTs = 1658429955;
66
const 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

1111
async function submitRequest() {
1212
const requestData = await prepareRequest();

examples/developer-hub-javascript/fdc_verify_proof.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function submitProof() {
2020
}
2121

2222
submitProof()
23-
.then((data) => {
23+
.then(() => {
2424
console.log("Submitted proof");
2525
})
2626
.catch((e) => {

0 commit comments

Comments
 (0)