Skip to content

Commit

Permalink
code address field (ava-labs#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwedge99 authored and zfy0701 committed Mar 14, 2024
1 parent 673fe18 commit 4e7815d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eth/tracers/sentio/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ func (t *sentioTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, s
call.Gas = math.HexOrDecimal64(scope.Stack.Back(0).Uint64())
from := scope.Contract.Address()
call.From = &from
call.CodeAddress = scope.Contract.CodeAddr
to := common.BigToAddress(scope.Stack.Back(1).ToBig())
call.To = &to
call.Value = (*hexutil.Big)(scope.Stack.Back(2).ToBig())
Expand Down Expand Up @@ -366,9 +367,11 @@ func (t *sentioTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, s
break
}
from := scope.Contract.CodeAddr
codeAddress := scope.Contract.CodeAddr

jump := mergeBase(Trace{
From: from,
From: from,
CodeAddress: codeAddress,
//InputStack: append([]uint256.Int(nil), scope.Stack.Data...), // TODO only need partial
})
if t.previousJump != nil {
Expand Down

0 comments on commit 4e7815d

Please sign in to comment.