Skip to content

Commit ae32bb1

Browse files
committed
fix(2533): pass calldata to self-sponsored fee estimation
1 parent 96190e3 commit ae32bb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/scripts/testEIP7702/sendSelfSponsoredType4Tx.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ async function main() {
3333
const ABI = ["function initialize() external"];
3434
const delegatedContract = new ethers.Contract(signer, ABI, signer);
3535

36-
const fees = await estimateGasFees(provider, rpcUrl, signer.address, signer.address);
36+
const calldata = delegatedContract.interface.encodeFunctionData("initialize");
37+
const fees = await estimateGasFees(provider, rpcUrl, signer.address, signer.address, calldata);
3738

3839
const txParams = {
3940
type: 4,

0 commit comments

Comments
 (0)