Skip to content

Commit 28ddc5e

Browse files
authored
accounts/abi: estimate gas with access-list (#546)
1 parent ba37ece commit 28ddc5e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

accounts/abi/bind/base.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ func (c *BoundContract) estimateGasLimit(opts *TransactOpts, contract *common.Ad
373373
GasFeeCap: gasFeeCap,
374374
Value: value,
375375
Data: input,
376+
// OP-Stack fix: important for CrossL2Inbox gas estimation
377+
AccessList: opts.AccessList,
376378
}
377379
return c.transactor.EstimateGas(ensureContext(opts.Context), msg)
378380
}

fork.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ def:
331331
globs:
332332
- "accounts/abi/bind/backends/simulated.go"
333333
- "ethclient/simulated/backend.go"
334+
- title: Fix ABI bindings gas-estimation to use access-list
335+
globs:
336+
- "accounts/abi/bind/base.go"
334337
- title: Live tracer update
335338
description: |
336339
Track L1-deposited native currency that is coming into the L2 supply.

0 commit comments

Comments
 (0)