Skip to content

refactor: append EIP-712 signature bytes directly - #1199

Merged
0xfornax merged 1 commit into
rocket-pool:masterfrom
alaningtrump:refactor/append-eip712-signature
Sep 1, 2026
Merged

refactor: append EIP-712 signature bytes directly#1199
0xfornax merged 1 commit into
rocket-pool:masterfrom
alaningtrump:refactor/append-eip712-signature

Conversation

@alaningtrump

Copy link
Copy Markdown
Contributor

MarshalText currently formats an intermediate string and then converts it to []byte.

Use fmt.Appendf with a nil destination to produce the same 0x-prefixed EIP-712 representation directly.

TestRoundTrip continues to cover the encoding.

@0xfornax
0xfornax merged commit 62256c7 into rocket-pool:master Sep 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants