Skip to content

Commit

Permalink
fix access list
Browse files Browse the repository at this point in the history
  • Loading branch information
Code0x2 committed Mar 11, 2024
1 parent d151652 commit 516ec88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ func AccessListOnState(ctx context.Context, b Backend, header *types.Header, db
nogas := args.Gas == nil

// Ensure any missing fields are filled, extract the recipient and input data
if err := args.setDefaults(ctx, b); err != nil {
if err := args.setDefaults(ctx, b, true); err != nil {
return nil, 0, nil, err
}
var to common.Address
Expand Down Expand Up @@ -1703,7 +1703,7 @@ func AccessListOnState(ctx context.Context, b Backend, header *types.Header, db
// and it's convered by the sender only anyway.
if nogas {
args.Gas = nil
if err := args.setDefaults(ctx, b); err != nil {
if err := args.setDefaults(ctx, b, true); err != nil {
return nil, 0, nil, err // shouldn't happen, just in case
}
}
Expand Down

0 comments on commit 516ec88

Please sign in to comment.