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: consent message prompt with Ok or Warn #406

Merged
merged 9 commits into from
Jan 6, 2025

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Jan 6, 2025

Motivation

According to the ICRC-49 specification when a signer attempts to decode the arguments locally because the targeted canister cannot decode them, a warning must be presented to the user.

That is why we are modifying the prompt to inform the consumer of the library by providing either Ok if the consent message was decoded by the canister or Warn if it was built by the library.

This is a breaking change.

Changes

  • Extend consentInfo with Ok and Warn
  • Provide Warn when consent message build within the library
  • Adapt demo to display consent message for ok or warn (I'll extend the custom E2E in another PR to test warn)

@peterpeterparker peterpeterparker marked this pull request as ready for review January 6, 2025 07:17
@peterpeterparker peterpeterparker requested a review from a team as a code owner January 6, 2025 07:17
Copy link
Contributor

@AntonioVentilii AntonioVentilii left a comment

Choose a reason for hiding this comment

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

LGTM tks

@peterpeterparker peterpeterparker merged commit e04dd93 into main Jan 6, 2025
13 checks passed
@peterpeterparker peterpeterparker deleted the feat/consent-message-with-warn branch January 6, 2025 09:14
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.

2 participants