mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
internal/ethapi: rewrite fmt.Errorf to errors.New in eth_createAccessList handler
This commit is contained in:
parent
19c1f8ebcd
commit
c5e3ac1736
1 changed files with 1 additions and 1 deletions
|
|
@ -1174,7 +1174,7 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
|
||||||
// Prevent redundant operations if args contain more authorizations than EVM may handle
|
// Prevent redundant operations if args contain more authorizations than EVM may handle
|
||||||
maxAuthorizations := uint64(*args.Gas) / params.CallNewAccountGas
|
maxAuthorizations := uint64(*args.Gas) / params.CallNewAccountGas
|
||||||
if uint64(len(args.AuthorizationList)) > maxAuthorizations {
|
if uint64(len(args.AuthorizationList)) > maxAuthorizations {
|
||||||
return nil, 0, nil, fmt.Errorf("insufficient gas to process all authorizations")
|
return nil, 0, nil, errors.New("insufficient gas to process all authorizations")
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, auth := range args.AuthorizationList {
|
for _, auth := range args.AuthorizationList {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue