Skip to content

Commit

Permalink
refactor: ♻️ mev: SetStateBlockNumber based on sender type (#83)
Browse files Browse the repository at this point in the history
Signed-off-by: thanhpp <thanhphanphu18@gmail.com>
  • Loading branch information
thanhpp authored Sep 12, 2024
1 parent 4d3b9ff commit 32e060f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/mev/bundle_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ func (s *Client) sendBundle(
JSONRPC: JSONRPC2,
Method: method,
}
p := new(SendBundleParams).SetBlockNumber(blockNumber).SetTransactions(txs...).SetStateBlockNumber("latest")
p := new(SendBundleParams).SetBlockNumber(blockNumber).SetTransactions(txs...)
if s.senderType == BundleSenderTypeFlashbot {
p = p.SetStateBlockNumber("latest")
}
if uuid != nil {
p.SetUUID(*uuid, s.senderType)
}
Expand Down

0 comments on commit 32e060f

Please sign in to comment.