We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48f70a9 commit 2b1b6f4Copy full SHA for 2b1b6f4
1 file changed
composables/zksync/useWithdrawalFinalization.ts
@@ -51,12 +51,22 @@ export default (transactionInfo: ComputedRef<TransactionInfo>) => {
51
52
const getTransactionParams = async () => {
53
finalizeWithdrawalParams.value = await getFinalizationParams();
54
+ const params = finalizeWithdrawalParams.value!;
55
+
56
+ const args = [
57
+ params.l1BatchNumber ?? 0,
58
+ params.l2MessageIndex,
59
+ params.l2TxNumberInBlock,
60
+ params.message,
61
+ params.sender,
62
+ params.proof,
63
+ ];
64
return {
65
address: (await retrieveL1NullifierAddress()) as Hash,
66
abi: IL1Nullifier,
67
account: onboardStore.account.address!,
68
functionName: "finalizeWithdrawal",
- args: [Object.values(finalizeWithdrawalParams.value!)],
69
+ args,
70
};
71
72
0 commit comments