Skip to content

Commit

Permalink
Set to 0 if invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Jul 26, 2024
1 parent fda2ee5 commit d1edfbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/evm/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ func (fc EVMFeeCheckDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate b
// only set priority if it is valid
if priority.IsInt64() {
ctx = ctx.WithPriority(priority.Int64())
} else {
ctx = ctx.WithPriority(0)
}

Check warning on line 103 in x/evm/ante/fee.go

View check run for this annotation

Codecov / codecov/patch

x/evm/ante/fee.go#L102-L103

Added lines #L102 - L103 were not covered by tests

return next(ctx, tx, simulate)
Expand Down

0 comments on commit d1edfbb

Please sign in to comment.