fix : typo in (tx *DynamicFeeTx) gasPriceU256() (#1064)

This commit is contained in:
SHIVAM SHARMA 2023-10-30 13:23:34 +05:30 committed by GitHub
parent d8c59ac8f2
commit ab42a16a1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@ func (tx *DynamicFeeTx) gasTipCapU256() *uint256.Int {
func (tx *DynamicFeeTx) gasPrice() *big.Int { return tx.GasFeeCap } func (tx *DynamicFeeTx) gasPrice() *big.Int { return tx.GasFeeCap }
func (tx *DynamicFeeTx) gasPriceU256() *uint256.Int { func (tx *DynamicFeeTx) gasPriceU256() *uint256.Int {
if tx.gasFeeCapUint256 != nil { if tx.gasFeeCapUint256 != nil {
return tx.gasTipCapUint256 return tx.gasFeeCapUint256
} }
tx.gasFeeCapUint256, _ = uint256.FromBig(tx.GasFeeCap) tx.gasFeeCapUint256, _ = uint256.FromBig(tx.GasFeeCap)