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

chore: Remove getActiveAccount usage #183

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

jefft0
Copy link
Contributor

@jefft0 jefft0 commented Oct 2, 2024

Similar to PR gnoverse/dsocial#130, we update gnoboard to use the new Gno Native Kit API which removes selectAccount and requires passing the account address to setPassword, etc. This PR has five commits:

  1. The app needs to keep track of the active account, so add GnoboardProvider.
  2. Instead of calling Gno Native Kit selectAccount, call GnoboardProvider setAccount to remember the active account.
  3. setPassword needs the account address, so in ReenterPassword add param accountAddress.
  4. In wallet/home: Pass in the account instead of calling getActiveAccount. Use the account address to call queryAccount.
  5. As in a similar dsocial PR, fix the Makefile to call ts_check after node_modules.

With this PR, all known apps have been updated to remove selectAcount and to pass the account address to the methods of Gno Native Kit, which can be updated to remove deprecated functions and to make the address not optional.

@iuricmp iuricmp force-pushed the chore/remove-get-active-account branch from b23941c to fb24e7d Compare October 8, 2024 11:11
@jefft0 jefft0 force-pushed the chore/remove-get-active-account branch from fb24e7d to e94dc7a Compare October 8, 2024 14:42
jefft0 added 2 commits October 8, 2024 16:50
Signed-off-by: Jeff Thompson <jeff@thefirst.org>
…ider setAccount.

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
@jefft0 jefft0 force-pushed the chore/remove-get-active-account branch from e94dc7a to b314c9e Compare October 8, 2024 15:55
@jefft0 jefft0 marked this pull request as ready for review October 8, 2024 16:48
jefft0 added 3 commits October 8, 2024 19:04
…in setPassword

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
…ount

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
…ch target

This is the same fix as PR gnoverse/dsocial#134

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
@jefft0 jefft0 force-pushed the chore/remove-get-active-account branch from b314c9e to 312fd47 Compare October 8, 2024 17:05
@jefft0 jefft0 requested a review from iuricmp October 9, 2024 08:38
@jefft0 jefft0 merged commit cf99636 into gnolang:main Oct 10, 2024
@jefft0 jefft0 deleted the chore/remove-get-active-account branch October 10, 2024 08:17
Copy link

🎉 This PR is included in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants