Skip to content

Commit

Permalink
fix: example
Browse files Browse the repository at this point in the history
  • Loading branch information
rekyyang committed May 28, 2024
1 parent 1907757 commit 89f5e39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ func main() {
}
fmt.Println("bundle price: ", bundlePrice)

if bundlePrice == nil {
// set default
bundlePrice = big.NewInt(5e9)
}

bundle := types.SendBundleArgs{
Txs: make([]hexutil.Bytes, 0),
MaxBlockNumber: 0,
Expand All @@ -81,7 +86,7 @@ func main() {
To: &address,
Value: big.NewInt(params.GWei),
Gas: uint64(5000000),
GasPrice: big.NewInt(5e9),
GasPrice: bundlePrice,
Data: nil,
}

Expand Down

0 comments on commit 89f5e39

Please sign in to comment.