Skip to content

Commit

Permalink
fix (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal authored Mar 12, 2024
1 parent c85df85 commit 9e1e2a7
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 9e1e2a7

Please sign in to comment.