Skip to content

Commit 503c1d3

Browse files
committed
PR comment
Signed-off-by: Ihor Farion <[email protected]>
1 parent b2ac53b commit 503c1d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/finalizer/utils/helios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,8 @@ async function ensureVkeysMatch(apiBaseUrl: string, sp1Helios: ethers.Contract):
794794
]);
795795

796796
const apiVkeyRaw = apiResp?.data?.vkey;
797-
const apiVkey = apiVkeyRaw !== undefined ? apiVkeyRaw.toLowerCase() : undefined;
798-
const contractVkey = contractVkeyRaw !== undefined ? contractVkeyRaw.toLowerCase() : undefined;
797+
const apiVkey = apiVkeyRaw?.toLowerCase();
798+
const contractVkey = contractVkeyRaw?.toLowerCase();
799799

800800
if (apiVkey === undefined || contractVkey === undefined || apiVkey !== contractVkey) {
801801
throw new Error(

0 commit comments

Comments
 (0)