Skip to content

Commit

Permalink
fix(l2geth): Log 'end of OVM execution' correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
maurelian committed Jun 14, 2021
1 parent 6d7b12b commit d931061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-pumas-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

Correctly log 'end of OVM execution' message.
7 changes: 3 additions & 4 deletions l2geth/core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,9 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas
ret = []byte{}
}
}
}

if evm.Context.EthCallSender == nil {
log.Debug("Reached the end of an OVM execution", "ID", evm.Id, "Return Data", hexutil.Encode(ret), "Error", err)
if evm.Context.EthCallSender == nil {
log.Debug("Reached the end of an OVM execution", "ID", evm.Id, "Return Data", hexutil.Encode(ret), "Error", err)
}
}
}

Expand Down

0 comments on commit d931061

Please sign in to comment.