Skip to content

Commit

Permalink
fix: make sponsor url as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong65 committed Oct 16, 2024
1 parent f1f92e2 commit 10c4ca2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/paymasterclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ func (c *client) SendRawTransaction(ctx context.Context, input hexutil.Bytes, op
return result, nil
}
}
if opts != nil && opts.UserAgent != "" {
c.userClient.SetHeader("User-Agent", opts.UserAgent)
}
err := c.userClient.CallContext(ctx, &result, "eth_sendRawTransaction", input)
if err != nil {
return common.Hash{}, err
Expand Down

0 comments on commit 10c4ca2

Please sign in to comment.