mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
internal/ethapi: estimate tx gas for EOA and arbitrary data (#340)
This commit is contained in:
parent
9eea134daa
commit
d84e0b5ad2
1 changed files with 1 additions and 1 deletions
|
|
@ -1251,7 +1251,7 @@ func (s *PublicBlockChainAPI) EstimateGas(ctx context.Context, args CallArgs, bl
|
|||
|
||||
res, _, failed, err, vmErr := s.doCall(ctx, args, rpc.LatestBlockNumber, vm.Config{}, 0)
|
||||
if err != nil {
|
||||
if errors.Is(err, core.ErrIntrinsicGas) {
|
||||
if errors.Is(err, vm.ErrOutOfGas) || errors.Is(err, core.ErrIntrinsicGas) {
|
||||
return false, nil, nil, nil // Special case, raise gas limit
|
||||
}
|
||||
return false, nil, err, nil // Bail out
|
||||
|
|
|
|||
Loading…
Reference in a new issue