[skip ci] simplify collectTouchedAccounts logic

This commit is contained in:
andri lim 2020-01-08 19:51:49 +07:00 committed by zah
parent cf0d4481f3
commit d37e37e5f3
1 changed files with 1 additions and 2 deletions

View File

@ -267,8 +267,7 @@ proc collectTouchedAccounts*(c: BaseComputation, output: var HashSet[EthAddress]
result = address[19] == byte(3)
let isIstanbul = c.getFork >= FkIstanbul
let condition = if isIstanbul: c.isError or ancestorHadError
else: c.isError and c.isOriginComputation
let condition = c.isError or ancestorHadError
for _, beneficiary in c.accountsToDelete:
if condition: