Skip to content

Commit

Permalink
fix(api_trace): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
imterryyy committed Oct 24, 2024
1 parent 7d51d3b commit ee1620e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eth/api_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ func (api *PrivateDebugAPI) traceChain(ctx context.Context, start, end *types.Bl
feeCapacity := state.GetTRC21FeeCapacityFromState(task.statedb)
// Trace all the transactions contained within
for i, tx := range task.block.Transactions() {
var balacne *big.Int
var balance *big.Int
if tx.To() != nil {
if value, ok := feeCapacity[*tx.To()]; ok {
balacne = value
balance = value
}
}
msg, _ := tx.AsMessage(signer, balacne, task.block.Number(), false)
msg, _ := tx.AsMessage(signer, balance, task.block.Number(), false)
vmctx := core.NewEVMContext(msg, task.block.Header(), api.eth.blockchain, nil)

res, err := api.traceTx(ctx, msg, vmctx, task.statedb, config)
Expand Down

0 comments on commit ee1620e

Please sign in to comment.