good morning!!!!

Skip to content
Snippets Groups Projects
Commit 09c13ee3 authored by Arpit Temani's avatar Arpit Temani
Browse files

fix sender pending txn

parent 15965124
Branches arpit/from-hotfix arpit/v0.2.13-patch-1
Tags
No related merge requests found
......@@ -1422,10 +1422,12 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber
// newRPCPendingTransaction returns a pending transaction that will serialize to the RPC representation
func newRPCPendingTransaction(tx *types.Transaction, current *types.Header, config *params.ChainConfig) *RPCTransaction {
var baseFee *big.Int
blockNumber := uint64(0)
if current != nil {
baseFee = misc.CalcBaseFee(config, current)
blockNumber = current.Number.Uint64()
}
return newRPCTransaction(tx, common.Hash{}, 0, 0, baseFee, config)
return newRPCTransaction(tx, common.Hash{}, blockNumber, 0, baseFee, config)
}
// newRPCTransactionFromBlockIndex returns a transaction that will serialize to the RPC representation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment