Skip to content

Commit

Permalink
Fixes for eth_callBundle rebase onto v1.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jparyani committed Aug 24, 2021
1 parent 078b469 commit 8da9e72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ func applyTransactionWithResult(msg types.Message, config *params.ChainConfig, b
}

// Set the receipt logs and create the bloom filter.
receipt.Logs = statedb.GetLogs(tx.Hash())
receipt.Logs = statedb.GetLogs(tx.Hash(), header.Hash())
receipt.Bloom = types.CreateBloom(types.Receipts{receipt})
receipt.BlockHash = statedb.BlockHash()
receipt.BlockHash = header.Hash()
receipt.BlockNumber = header.Number
receipt.TransactionIndex = uint(statedb.TxIndex())
return receipt, result, err
Expand Down
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2241,7 +2241,7 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[st
gasFees := new(big.Int)
for i, tx := range txs {
coinbaseBalanceBeforeTx := state.GetBalance(coinbase)
state.Prepare(tx.Hash(), common.Hash{}, i)
state.Prepare(tx.Hash(), i)

receipt, result, err := core.ApplyTransactionWithResult(s.b.ChainConfig(), s.chain, &coinbase, gp, state, header, tx, &header.GasUsed, vmconfig)
if err != nil {
Expand Down

0 comments on commit 8da9e72

Please sign in to comment.