Skip to content

Commit

Permalink
Hardcode Astar's gas price
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyachi committed Nov 8, 2022
1 parent c8131c6 commit 705d3e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ func (w *Wallet) GasPrice() (price *big.Int, err error) {
}

func (w *Wallet) GasTip() (price *big.Int, err error) {
if w.sdk.ChainID == base.ASTAR {
// astar average price is 60 Gwei while node returns 1 Gwei
return big.NewInt(1000000000 * 60), nil
}
return w.sdk.Node().SuggestGasTipCap(context.Background())
}

Expand Down

0 comments on commit 705d3e6

Please sign in to comment.