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

[BRO-9] Add addCIS2Tokens to the wCCD example #452

Merged
merged 7 commits into from
Apr 4, 2024

Conversation

Ivan-Mahda
Copy link
Contributor

@Ivan-Mahda Ivan-Mahda commented Mar 27, 2024

Purpose

It would be both good user experience to suggest to add the newly wrapped token to the user's wallet, as well as a good example to demonstrate this functionality in an example app to spread its visibility.

Changes

Created new button "Add Token to wallet" that calls addCIS2Tokens from browser-wallet-api-helpers

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

CLA acceptance

_Remove if not applicable.

By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0

Copy link
Collaborator

@soerenbf soerenbf left a comment

Choose a reason for hiding this comment

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

It works well, but I have the following suggestions:

examples/wCCD/src/wCCD.tsx Outdated Show resolved Hide resolved
examples/wCCD/src/wCCD.tsx Outdated Show resolved Hide resolved
examples/wCCD/package.json Outdated Show resolved Hide resolved
Ivan-Mahda and others added 5 commits April 3, 2024 16:02
Co-authored-by: Søren Bruus Zeppelin <sz@concordium.com>
Co-authored-by: Søren Bruus Zeppelin <sz@concordium.com>
Co-authored-by: Søren Bruus Zeppelin <sz@concordium.com>
Use BrowserWalletConnector instead of detectConcordiumProvider
@Ivan-Mahda Ivan-Mahda merged commit 9a48168 into main Apr 4, 2024
7 checks passed
@Ivan-Mahda Ivan-Mahda deleted the BRO-9-add-addcis2tokens-to-the-wccd-example branch April 4, 2024 10:11
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.

None yet

3 participants