Skip to content

Commit 2227d9b

Browse files
committed
fix: L2 to L1 withdrawal
1 parent 0dcf1a9 commit 2227d9b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

claim_contracts/base/scripts/withdraw.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
publicActionsL1,
1212
walletActionsL1,
1313
publicActionsL2,
14+
getWithdrawals,
1415
} from "viem/op-stack";
1516

1617
// --- Config ---
@@ -133,8 +134,9 @@ async function finalize(txHash: Hash, network: Network) {
133134
}
134135

135136
console.log("Finalizing withdrawal on L1...");
137+
const [withdrawal] = getWithdrawals({ logs: receipt.logs });
136138
const finalizeHash = await walletClientL1.finalizeWithdrawal({
137-
receipt,
139+
withdrawal,
138140
targetChain: chains.l2,
139141
});
140142

0 commit comments

Comments
 (0)