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: upgrade argent webwallet connect with one call #127

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

bluecco
Copy link
Contributor

@bluecco bluecco commented Aug 20, 2024

Issue / feature description

Right now, webwallet performs 2 calls for iframe (requestAccounts and requestChainId) and 3 for a popup (.authorize endpoint on trpc).

With this change, everything is done with one call (improving UX).

This change requires a webwallet upgrade too (so this pr will be merged after webwallet is updated)

Changes

  • update WebwalletStarknetWindowObject
  • update connect method on webwallet connector
  • remove authorize trpc mutation

Checklist

  • Rebased to the last commit of the target branch (or merged)
  • Code self-reviewed
  • Code self-tested
  • Tests updated (if needed)
  • All tests are passing locally

Please keep your pull request as small as possible. If you need to make multiple changes, please create separate pull requests for each change. Create a draft pull request if you need early feedback. This will mark the pull request as a work in progress and prevent it from being reviewed or merged until you are ready.

Please move drafts to the ready for review (regular PR) when you are ready to start the review process and other developers will pick it up from there.

@bluecco bluecco added the DON'T MERGE No merge till final decision label Aug 22, 2024
@bluecco bluecco marked this pull request as draft August 22, 2024 07:20
@Inukares Inukares marked this pull request as ready for review September 11, 2024 09:50
@Inukares Inukares merged commit 8abbfb6 into develop Sep 11, 2024
1 check passed
@Inukares Inukares deleted the feat/connect-webwallet-v2 branch September 11, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DON'T MERGE No merge till final decision
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants