This repository was archived by the owner on May 12, 2025. It is now read-only.
suave_structs.go: Marshal bytes to hexstring#206
Open
jinmel wants to merge 5 commits intoflashbots:mainfrom
Open
suave_structs.go: Marshal bytes to hexstring#206jinmel wants to merge 5 commits intoflashbots:mainfrom
jinmel wants to merge 5 commits intoflashbots:mainfrom
Conversation
- current: []byte field marshals to base64 string - to be: BuildBlockArgs and DataRecord structs now use hexutil.Big and hexutil.Bytes for uint64 and []byte fields respectively
0fb11f1 to
6a7d39e
Compare
ferranbt
suggested changes
Feb 27, 2024
| {{end}} | ||
| } | ||
|
|
||
| type {{.Name | lower}}Marshaling struct { |
Contributor
There was a problem hiding this comment.
Do you need to do this as part of the code generation?
Could you create another file suave_structs_encoding.go which is not code generated that does the encoding overriding?
|
|
||
| suavedevtools: | ||
| go run ./suave/gen/main.go -write | ||
| cd core/types && \ |
Contributor
There was a problem hiding this comment.
Could you use // go:generate to do this? https://github.com/flashbots/suave-execution-geth/blob/feature/e2e-block-building-builderapi/suave/builder/api/api.go#L15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Summary
📚 References