use GasFeeCap for unmined tx GasPrice
This commit is contained in:
parent
68d6695df8
commit
a1fbc1875b
@ -202,7 +202,7 @@ func NewRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber
|
|||||||
price := math.BigMin(new(big.Int).Add(tx.GasTipCap(), baseFee), tx.GasFeeCap())
|
price := math.BigMin(new(big.Int).Add(tx.GasTipCap(), baseFee), tx.GasFeeCap())
|
||||||
result.GasPrice = (*hexutil.Big)(price)
|
result.GasPrice = (*hexutil.Big)(price)
|
||||||
} else {
|
} else {
|
||||||
result.GasPrice = nil
|
result.GasPrice = (*hexutil.Big)(tx.GasFeeCap())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user