mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
Trace the account accessed by EXTCODE op (#157)
add account touch by 'EXTCODE' for storeTrace
This commit is contained in:
parent
9182a74334
commit
edbb595e66
1 changed files with 1 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ func traceLastNAddressCode(n int) traceFunc {
|
||||||
address := common.Address(stack.data[stack.len()-1-n].Bytes20())
|
address := common.Address(stack.data[stack.len()-1-n].Bytes20())
|
||||||
code := l.env.StateDB.GetCode(address)
|
code := l.env.StateDB.GetCode(address)
|
||||||
extraData.CodeList = append(extraData.CodeList, hexutil.Encode(code))
|
extraData.CodeList = append(extraData.CodeList, hexutil.Encode(code))
|
||||||
|
l.statesAffected[address] = struct{}{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue