Skip to content

Commit

Permalink
fix to return proper error code
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Oct 23, 2024
1 parent 5bde6f0 commit 818ac62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/evm/keeper/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (k Keeper) EVMCallWithTracer(ctx context.Context, caller common.Address, co

// evm sometimes return 0 gasRemaining, but it's not an out of gas error.
if gasRemaining == 0 && err != nil && err != vm.ErrOutOfGas {
return nil, nil, types.ErrEVMCreateFailed.Wrap(err.Error())
return nil, nil, types.ErrEVMCallFailed.Wrap(err.Error())
}

Check warning on line 267 in x/evm/keeper/context.go

View check run for this annotation

Codecov / codecov/patch

x/evm/keeper/context.go#L266-L267

Added lines #L266 - L267 were not covered by tests

// London enforced
Expand Down

0 comments on commit 818ac62

Please sign in to comment.