Skip to content

Commit

Permalink
Revert "add logs"
Browse files Browse the repository at this point in the history
This reverts commit 0b13282.
  • Loading branch information
hadv committed Jul 28, 2023
1 parent 8b8f5e2 commit d13d54c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/vm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
}
// Static portion of gas
cost = operation.constantGas // For tracing
log.Info("operation", "cost", cost)
if !contract.UseGas(operation.constantGas) {
return nil, ErrOutOfGas
}
Expand All @@ -246,7 +245,6 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
if operation.dynamicGas != nil {
var dynamicCost uint64
dynamicCost, err = operation.dynamicGas(in.evm, contract, stack, mem, memorySize)
log.Info("dynamicCost", "dynamicCost", dynamicCost)
cost += dynamicCost // total cost, for debug tracing
if err != nil || !contract.UseGas(dynamicCost) {
return nil, ErrOutOfGas
Expand Down

0 comments on commit d13d54c

Please sign in to comment.