Skip to content

Commit c5e3ac1

Browse files
author
sashabeton
committed
internal/ethapi: rewrite fmt.Errorf to errors.New in eth_createAccessList handler
1 parent 19c1f8e commit c5e3ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
11741174
// Prevent redundant operations if args contain more authorizations than EVM may handle
11751175
maxAuthorizations := uint64(*args.Gas) / params.CallNewAccountGas
11761176
if uint64(len(args.AuthorizationList)) > maxAuthorizations {
1177-
return nil, 0, nil, fmt.Errorf("insufficient gas to process all authorizations")
1177+
return nil, 0, nil, errors.New("insufficient gas to process all authorizations")
11781178
}
11791179

11801180
for _, auth := range args.AuthorizationList {

0 commit comments

Comments
 (0)