mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
cmd/evm/internal/t8ntool: fix transactionIndex
This commit is contained in:
parent
9ed5fc6616
commit
a92c9f60bf
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
2
cmd/evm/testdata/30/exp.json
vendored
2
cmd/evm/testdata/30/exp.json
vendored
|
|
@ -47,7 +47,7 @@
|
|||
"effectiveGasPrice": null,
|
||||
"blockHash": "0x1337000000000000000000000000000000000000000000000000000000000000",
|
||||
"blockNumber": "0x1",
|
||||
"transactionIndex": "0x2"
|
||||
"transactionIndex": "0x1"
|
||||
}
|
||||
],
|
||||
"rejected": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue