Skip to content

Commit

Permalink
fix: missing new func
Browse files Browse the repository at this point in the history
  • Loading branch information
datluongductuan committed Jun 18, 2024
1 parent 5eefd6d commit 8072b33
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pkg/mev/backrun_public_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ type BackrunPublicClient struct {
senderType BundleSenderType
}

func NewBackrunPublicClient(
c *http.Client,
endpoint string,
flashbotKey *ecdsa.PrivateKey,
senderType BundleSenderType,
) *BackrunPublicClient {
return &BackrunPublicClient{
c: c,
endpoint: endpoint,
flashbotKey: flashbotKey,
senderType: senderType,
}
}

func (b BackrunPublicClient) SendBackrunBundle(
ctx context.Context,
uuid *string,
Expand Down Expand Up @@ -77,5 +91,5 @@ func (b BackrunPublicClient) MevSimulateBundle(
}

func (b BackrunPublicClient) GetSenderType() BundleSenderType {
return BundleSenderTypeBackrunPublic
return b.senderType
}

0 comments on commit 8072b33

Please sign in to comment.