Skip to content
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

feat: auto prefix message with EIP191 if not prefixed #689

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

VGabriel45
Copy link
Contributor

@VGabriel45 VGabriel45 commented Mar 5, 2025

This PR improves the DX for @0xsequence/account and @0xsequence/auth, messages are now prefixed by default in the SDK with EIP191 if not prefixed already.

@VGabriel45 VGabriel45 requested review from a team as code owners March 5, 2025 16:21
@VGabriel45 VGabriel45 changed the title feat: add auto prefixing check to account.signMessage feat: auto prefix message with EIP191 if not prefixed Mar 5, 2025
Copy link
Contributor

@tolgahan-arikan tolgahan-arikan left a comment

Choose a reason for hiding this comment

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

lgtm! linked locally to webapp and tested there as well and did not see any issues

@taylanpince taylanpince force-pushed the feat/account_signMessage_auto_prefix branch from f8101d8 to 3581a00 Compare March 10, 2025 13:57
@taylanpince taylanpince merged commit 21c1bd7 into master Mar 10, 2025
22 checks passed
@taylanpince taylanpince deleted the feat/account_signMessage_auto_prefix branch March 10, 2025 14:01
Dargon789 added a commit to Dargon789/sequence.js that referenced this pull request Mar 13, 2025
* Revert "[AUTOMATED] Update constants.ts (0xsequence#681)"

This reverts commit a181b69.

* [AUTOMATED] Update files from 0xsequence/stack (0xsequence#680)

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

---------

Co-authored-by: pkieltyka <[email protected]>
Co-authored-by: nachopiris <[email protected]>
Co-authored-by: VojtechVitek <[email protected]>
Co-authored-by: david-littlefarmer <[email protected]>

* [AUTOMATED] Update files from 0xsequence/marketplace-api (0xsequence#682)

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

---------

Co-authored-by: david-littlefarmer <[email protected]>
Co-authored-by: VojtechVitek <[email protected]>
Co-authored-by: AlexanderKolberg <[email protected]>

* [AUTOMATED] Update: proto/clients/metadata.gen.ts (0xsequence#684)

Co-authored-by: VojtechVitek <[email protected]>

* [AUTOMATED] Update: proto/clients/relayer.gen.ts (0xsequence#685)

Co-authored-by: VojtechVitek <[email protected]>

* [AUTOMATED] Update: proto/clients/guard.gen.ts (0xsequence#686)

Co-authored-by: VojtechVitek <[email protected]>

* feat: auto prefix message with EIP191 if not prefixed (0xsequence#689)

* feat: add auto prefixing check to account.signMessage

* refactor: refactor logic to use ethers method

* [AUTOMATED] Update: api/proto/clients/api.gen.ts (0xsequence#690)

Co-authored-by: taylanpince <[email protected]>

---------

Co-authored-by: 0xsequence-bot <[email protected]>
Co-authored-by: pkieltyka <[email protected]>
Co-authored-by: nachopiris <[email protected]>
Co-authored-by: VojtechVitek <[email protected]>
Co-authored-by: david-littlefarmer <[email protected]>
Co-authored-by: AlexanderKolberg <[email protected]>
Co-authored-by: Gabi <[email protected]>
Co-authored-by: taylanpince <[email protected]>
Dargon789 added a commit to Dargon789/sequence.js that referenced this pull request Mar 13, 2025
* Revert "[AUTOMATED] Update constants.ts (0xsequence#681)"

This reverts commit a181b69.

* [AUTOMATED] Update files from 0xsequence/stack (0xsequence#680)

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

* [AUTOMATED] Update: api/proto/clients/api.gen.ts

---------






* [AUTOMATED] Update files from 0xsequence/marketplace-api (0xsequence#682)

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

* [AUTOMATED] Update: proto/clients/marketplace.gen.ts

---------





* [AUTOMATED] Update: proto/clients/metadata.gen.ts (0xsequence#684)



* [AUTOMATED] Update: proto/clients/relayer.gen.ts (0xsequence#685)



* [AUTOMATED] Update: proto/clients/guard.gen.ts (0xsequence#686)



* feat: auto prefix message with EIP191 if not prefixed (0xsequence#689)

* feat: add auto prefixing check to account.signMessage

* refactor: refactor logic to use ethers method

* [AUTOMATED] Update: api/proto/clients/api.gen.ts (0xsequence#690)



---------

Co-authored-by: 0xsequence-bot <[email protected]>
Co-authored-by: pkieltyka <[email protected]>
Co-authored-by: nachopiris <[email protected]>
Co-authored-by: VojtechVitek <[email protected]>
Co-authored-by: david-littlefarmer <[email protected]>
Co-authored-by: AlexanderKolberg <[email protected]>
Co-authored-by: Gabi <[email protected]>
Co-authored-by: taylanpince <[email protected]>
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.

3 participants