Skip to content

Commit

Permalink
Change creation of tx message to cover internal tx
Browse files Browse the repository at this point in the history
  • Loading branch information
jenikd committed Oct 31, 2023
1 parent c142a59 commit 95c6da0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ func (api *PublicDebugAPI) traceBlock(ctx context.Context, block *evmcore.EvmBlo
TxIndex: i,
TxHash: txs[i].Hash(),
}
msg, _ := tx.AsMessage(signer, block.BaseFee)
msg, _ := evmcore.TxAsMessage(tx, signer, block.BaseFee)
res, err := api.traceTx(ctx, msg, txctx, blockCtx, statedb, config)
if err != nil {
results[i] = &txTraceResult{Error: err.Error()}
Expand Down Expand Up @@ -2329,7 +2329,7 @@ func (api *PublicDebugAPI) stateAtTransaction(ctx context.Context, block *evmcor
signer := gsignercache.Wrap(types.MakeSigner(api.b.ChainConfig(), block.Number))
for idx, tx := range block.Transactions {
// Assemble the transaction call message and return if the requested offset
msg, _ := tx.AsMessage(signer, block.BaseFee)
msg, _ := evmcore.TxAsMessage(tx, signer, block.BaseFee)
txContext := evmcore.NewEVMTxContext(msg)
context := api.b.GetBlockContext(block.Header())
if idx == txIndex {
Expand Down

0 comments on commit 95c6da0

Please sign in to comment.