diff --git a/src/components/admin/VerifierRegistry.tsx b/src/components/admin/VerifierRegistry.tsx index b70f1304..b2522d11 100644 --- a/src/components/admin/VerifierRegistry.tsx +++ b/src/components/admin/VerifierRegistry.tsx @@ -47,7 +47,7 @@ type VerifierRegistryForm = { }; function updateVerifier(params: { - queryId?: number; + queryId?: bigint; id: bigint; quorum: number; endpoints: Map; @@ -56,7 +56,7 @@ function updateVerifier(params: { }) { let msgBody = beginCell(); msgBody.storeUint(OperationCodes.updateVerifier, 32); - msgBody.storeUint(params.queryId || 0, 64); + msgBody.storeUint(params.queryId || 0n, 64); msgBody.storeUint(params.id, 256); msgBody.storeUint(params.quorum, 8); @@ -72,10 +72,10 @@ function updateVerifier(params: { return msgBody.endCell(); } -function removeVerifier(params: { queryId?: number; id: bigint }) { +function removeVerifier(params: { queryId?: bigint; id: bigint }) { let msgBody = beginCell(); msgBody.storeUint(OperationCodes.removeVerifier, 32); - msgBody.storeUint(params.queryId || 0, 64); + msgBody.storeUint(params.queryId || 0n, 64); msgBody.storeUint(params.id, 256); return msgBody.endCell(); } diff --git a/src/lib/useSubmitSources.ts b/src/lib/useSubmitSources.ts index 64ebd1e8..218f3b37 100644 --- a/src/lib/useSubmitSources.ts +++ b/src/lib/useSubmitSources.ts @@ -199,7 +199,7 @@ export function useSubmitSources() { ); const s = Cell.fromBoc(Buffer.from(result.msgCell))[0].beginParse(); - queryId = s.loadUint(64); + queryId = s.loadUintBig(64); } return {