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

Fix typing between sats connect and extension for providers #768

Conversation

victorkirov
Copy link
Member

Note: This PR needs to be merged and published: secretkeylabs/sats-connect#59

🔘 PR Type

What kind of change does this PR introduce?

  • Bugfix

📜 Background

With the XverseProvider object being types in sats-connect on the window object, the typing was not extendable and it resulted in typescript clashes.

🔄 Changes

The type was extracted into its own extendable interface in sats connect. This PR requires sats-connect tobe bumped and upgraded and the types are subsequently fixed with the interface correctly extended with the stacks provider.

This is a typing change, so there are no functional changes to test.

✅ Review checklist

Please ensure the following are true before merging:

  • Code Style is consistent with the project guidelines.
  • Code is readable and well-commented.
  • No unnecessary or debugging code has been added.
  • Security considerations have been taken into account.
  • The change has been manually tested and works as expected.
  • Breaking changes and their impacts have been considered and documented.
  • Code does not introduce new technical debt or issues.

@m-aboelenein m-aboelenein changed the base branch from develop to mahmoud/eng-3370-improve-get-address-screen January 25, 2024 10:27
@m-aboelenein m-aboelenein merged commit 89a240b into mahmoud/eng-3370-improve-get-address-screen Jan 25, 2024
@m-aboelenein m-aboelenein deleted the vic/fix-sats-connect-typing branch January 25, 2024 10:30
Copy link

teebszet pushed a commit that referenced this pull request Jan 26, 2024
* init getAddress screen revamp

* update ui

* update btc address select request

* update stx screen and add btcAddress to stacks connect response

* ui fixes

* minor fixes

* disable account actions on connection requests

* added icon borderRadius

* remove debug log

* Fix typing between sats connect and extension for providers (#768)

* Fix typing between sats connect and extension for providers

* update sats-connect version

---------

Co-authored-by: Mahmoud Aboelenein <[email protected]>

---------

Co-authored-by: Victor Kirov <[email protected]>
jordankzf pushed a commit that referenced this pull request Jan 28, 2024
* init getAddress screen revamp

* update ui

* update btc address select request

* update stx screen and add btcAddress to stacks connect response

* ui fixes

* minor fixes

* disable account actions on connection requests

* added icon borderRadius

* remove debug log

* Fix typing between sats connect and extension for providers (#768)

* Fix typing between sats connect and extension for providers

* update sats-connect version

---------

Co-authored-by: Mahmoud Aboelenein <[email protected]>

---------

Co-authored-by: Victor Kirov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants