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

Avoid wallet deploy on v2 sdk #383

Merged
merged 3 commits into from
Jun 29, 2023
Merged

Avoid wallet deploy on v2 sdk #383

merged 3 commits into from
Jun 29, 2023

Conversation

Agusx1211
Copy link
Member

  • Default signMessage and signTypedMessage to sequenceVerified = true. This means that these signatures won't trigger a wallet deployment.
  • Pass authorizeVersion == 2 to the connect options, this way we don't deploy the wallet upon connect (polygon/mumbai)

@Agusx1211 Agusx1211 requested a review from attente June 28, 2023 18:38
@Agusx1211
Copy link
Member Author

don't merge: I found an issue with the migrated wallets, signMessage doesn't validate correctly (the onchain contract can't validate a v2 signature, and the counterfactual validation doesn't match the v2 context)

@Agusx1211
Copy link
Member Author

Fixed it by still requiring the wallet deployment on sequenceVerified == true if the wallet is not deployed but the initial version wasn't 2

@Agusx1211 Agusx1211 merged commit 368e1c4 into v2 Jun 29, 2023
@Agusx1211 Agusx1211 deleted the v2-avoid-unrequired-deploy branch June 29, 2023 10:26
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