Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Conversation

@jinmel
Copy link
Contributor

@jinmel jinmel commented Feb 23, 2024

  • 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

📝 Summary

📚 References


  • I have seen and agree to CONTRIBUTING.md

 - 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
@jinmel jinmel marked this pull request as draft February 23, 2024 23:14
@jinmel jinmel marked this pull request as ready for review February 24, 2024 07:42
{{end}}
}

type {{.Name | lower}}Marshaling struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants