mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +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())
|
||||
code := l.env.StateDB.GetCode(address)
|
||||
extraData.CodeList = append(extraData.CodeList, hexutil.Encode(code))
|
||||
l.statesAffected[address] = struct{}{}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue