Skip to content

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

Open
alaningtrump wants to merge 1 commit into
rocket-pool:masterfrom
alaningtrump:refactor/append-eip712-signature
Open

refactor: append EIP-712 signature bytes directly#1199
alaningtrump wants to merge 1 commit into
rocket-pool:masterfrom
alaningtrump:refactor/append-eip712-signature

Conversation

@alaningtrump

Copy link
Copy Markdown

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.

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.

1 participant