mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-26 20:19:31 +00:00
fix fork comparison at postExecuteVM bug
This commit is contained in:
parent
8a9e4aba80
commit
a8d0a13856
@ -182,7 +182,7 @@ proc postExecuteVM(computation: BaseComputation) =
|
||||
if computation.isSuccess and computation.msg.isCreate:
|
||||
let fork = computation.getFork
|
||||
let contractFailed = not computation.writeContract(fork)
|
||||
if contractFailed and fork == FkHomestead:
|
||||
if contractFailed and fork >= FkHomestead:
|
||||
computation.setError(&"writeContract failed, depth={computation.msg.depth}", true)
|
||||
|
||||
if computation.isSuccess:
|
||||
|
Loading…
x
Reference in New Issue
Block a user