Skip to content

Commit

Permalink
Merge branch 'develop' into fix/tidy-unused-params
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal authored Mar 12, 2024
2 parents 8fac1d0 + 9e1e2a7 commit c7aeb11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jsonrpc/eth_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,13 @@ func (e *Eth) EstimateGas(arg *txnArgs, rawNum *BlockNumber) (interface{}, error
highEnd = header.GasLimit
}

gasPriceInt := new(big.Int).Set(transaction.GasPrice())
gasPriceInt := big.NewInt(0)
gasprice := transaction.GasPrice()

if gasprice != nil { // if dynamic transaction this will be nil
gasPriceInt.Set(gasprice)
}

valueInt := new(big.Int).Set(transaction.Value())

var availableBalance *big.Int
Expand Down

0 comments on commit c7aeb11

Please sign in to comment.