cmd/evm/internal/t8ntool: fix transactionIndex

This commit is contained in:
Felix Lange 2025-09-15 20:12:07 +02:00
parent 9ed5fc6616
commit a92c9f60bf
2 changed files with 2 additions and 2 deletions

View file

@ -248,7 +248,7 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
continue
}
}
statedb.SetTxContext(tx.Hash(), i)
statedb.SetTxContext(tx.Hash(), len(receipts))
var (
snapshot = statedb.Snapshot()
prevGas = gaspool.Gas()

View file

@ -47,7 +47,7 @@
"effectiveGasPrice": null,
"blockHash": "0x1337000000000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x1",
"transactionIndex": "0x2"
"transactionIndex": "0x1"
}
],
"rejected": [