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…
Reference in New Issue