Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/admin/VerifierRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type VerifierRegistryForm = {
};

function updateVerifier(params: {
queryId?: number;
queryId?: bigint;
id: bigint;
quorum: number;
endpoints: Map<bigint, number>;
Expand All @@ -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);

Expand All @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/useSubmitSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down