We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dcf1a9 commit 2227d9bCopy full SHA for 2227d9b
1 file changed
claim_contracts/base/scripts/withdraw.ts
@@ -11,6 +11,7 @@ import {
11
publicActionsL1,
12
walletActionsL1,
13
publicActionsL2,
14
+ getWithdrawals,
15
} from "viem/op-stack";
16
17
// --- Config ---
@@ -133,8 +134,9 @@ async function finalize(txHash: Hash, network: Network) {
133
134
}
135
136
console.log("Finalizing withdrawal on L1...");
137
+ const [withdrawal] = getWithdrawals({ logs: receipt.logs });
138
const finalizeHash = await walletClientL1.finalizeWithdrawal({
- receipt,
139
+ withdrawal,
140
targetChain: chains.l2,
141
});
142
0 commit comments