Skip to content

Commit 11033f7

Browse files
committed
fix: minGasPriceInt
1 parent d7ed3b1 commit 11033f7

File tree

1 file changed

+3
-1
lines changed
  • rpc/namespaces/ethereum/eth

1 file changed

+3
-1
lines changed

rpc/namespaces/ethereum/eth/api.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ func (e *PublicAPI) GasPrice() (*hexutil.Big, error) {
216216
if err != nil {
217217
return nil, err
218218
}
219-
minGasPriceInt := minGasPrice.BigInt()
219+
220+
//minGasPriceInt := minGasPrice.BigInt()
221+
minGasPriceInt := minGasPrice.TruncateInt().BigInt()
220222
if result.Cmp(minGasPriceInt) < 0 {
221223
result = minGasPriceInt
222224
}

0 commit comments

Comments
 (0)