Skip to content

Commit

Permalink
Merge pull request ethereum#33 from OffchainLabs/bind-precompiles
Browse files Browse the repository at this point in the history
bind: estimateGas for precompiles
  • Loading branch information
tsahee committed Jan 11, 2022
2 parents 286d3a2 + e2e605f commit c9ba496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (c *BoundContract) createLegacyTx(opts *TransactOpts, contract *common.Addr
}

func (c *BoundContract) estimateGasLimit(opts *TransactOpts, contract *common.Address, input []byte, gasPrice, gasTipCap, gasFeeCap, value *big.Int) (uint64, error) {
if contract != nil {
if contract != nil && (contract.Hash().Big().Uint64() > 0x1000) {
// Gas estimation cannot succeed without code for method invocations.
if code, err := c.transactor.PendingCodeAt(ensureContext(opts.Context), c.address); err != nil {
return 0, err
Expand Down

0 comments on commit c9ba496

Please sign in to comment.