Skip to content

Commit

Permalink
boba eth oracle: fix gas price
Browse files Browse the repository at this point in the history
  • Loading branch information
kaythxbye committed Aug 9, 2023
1 parent 2ffd373 commit 7852795
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/blockchain/ethereum/diaOracleV2BobaService/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,15 @@ func updateOracle(
value int64,
timestamp int64) error {

gasPrice, err := client.SuggestGasPrice(context.Background())
/*gasPrice, err := client.SuggestGasPrice(context.Background())
if err != nil {
log.Fatal(err)
}
}*/

// Get Wei price of the gas price
fGas := new(big.Float).SetInt(gasPrice)
fGas.Mul(fGas, big.NewFloat(1e9))
gasPrice, _ = fGas.Int(nil)
//fGas := new(big.Float).Set(1e9)
//fGas.Mul(fGas, big.NewFloat(1e9))
gasPrice := big.NewInt(1000000000)

// Write values to smart contract
tx, err := contract.SetValue(&bind.TransactOpts{
Expand Down

0 comments on commit 7852795

Please sign in to comment.