-
Notifications
You must be signed in to change notification settings - Fork 0
Bid update to include Shutter specific fields #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5fe5f5b
d79f19e
58ef898
bc30c45
0ea516c
5c2a1c4
f5d5d5f
707b371
f3b2e69
8b21eef
389927a
5384784
8862668
25bcb67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,6 +144,17 @@ func (s *Service) ProcessBid( | |
| }, | ||
| } | ||
| opts.Options = append(opts.Options, opt) | ||
| case bOpt.GetShutterisedBidOption() != nil: | ||
| c := bOpt.GetShutterisedBidOption() | ||
| opt := &providerapiv1.BidOption{ | ||
| Opt: &providerapiv1.BidOption_ShutterisedBidOption{ | ||
| ShutterisedBidOption: &providerapiv1.ShutterisedBidOption{ | ||
| IdentityPrefix: c.GetIdentityPrefix(), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, nice catch |
||
| EncryptedTx: c.GetEncryptedTx(), | ||
| }, | ||
| }, | ||
| } | ||
| opts.Options = append(opts.Options, opt) | ||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should standardize all hex-encoded fields to consistently include the
0xprefix. This follows Ethereum conventions and the approach we use in the Shutter API, and it also makes it immediately clear from the string representation which encoding we’re dealing with.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The standard followed in mev-commit repo, is to not include
0xprefix to the hex encoded strings, which is also followed here!