Skip to content

Commit

Permalink
feat(logic): use the default cost params when lookup gas cost
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Sep 27, 2024
1 parent 66270c2 commit 350b78a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/logic/keeper/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ func gasMeterHookFn(ctx context.Context, gasPolicy types.GasPolicy) engine.HookF

predicate := operandStringer.String()

cost := lookupCost(predicate, defaultPredicateCost, gasPolicy.PredicateCosts)
cost := lookupCost(predicate,
nonNilNorZeroOrDefaultUint64(gasPolicy.DefaultPredicateCost, defaultPredicateCost),
gasPolicy.PredicateCosts)

defer func() {
if r := recover(); r != nil {
Expand Down

0 comments on commit 350b78a

Please sign in to comment.