Skip to content

Commit

Permalink
Trace the account accessed by EXTCODE op (ethereum#157)
Browse files Browse the repository at this point in the history
add account touch by 'EXTCODE' for storeTrace
  • Loading branch information
noel2004 authored Sep 18, 2022
1 parent 9182a74 commit edbb595
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/vm/logger_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit edbb595

Please sign in to comment.