mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-05 00:36:45 +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:
|
if computation.isSuccess and computation.msg.isCreate:
|
||||||
let fork = computation.getFork
|
let fork = computation.getFork
|
||||||
let contractFailed = not computation.writeContract(fork)
|
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)
|
computation.setError(&"writeContract failed, depth={computation.msg.depth}", true)
|
||||||
|
|
||||||
if computation.isSuccess:
|
if computation.isSuccess:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user