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: use icrc2 approve consent message builder as fallback #388

Merged
merged 4 commits into from
Dec 30, 2024

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Dec 30, 2024

Motivation

Similarly as for ICRC1 transfer, this PR integrates the ICRC2 approve consent message builder (#383) in the signer service - i.e. if the target canister does not implement ICRC-21 and the method targeted is icrc2_approve then we use a custom builder to present a consent message to the user of the signer.

Changes

  • Add buildContentMessageIcrc2Approve to the list of builders
  • Update tests to reuse the same suite for icrc1_transfer and icrc2_approve

@peterpeterparker peterpeterparker marked this pull request as ready for review December 30, 2024 09:57
@peterpeterparker peterpeterparker requested a review from a team as a code owner December 30, 2024 09:57
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 6281f97 into main Dec 30, 2024
10 checks passed
@peterpeterparker peterpeterparker deleted the feat/icrc2-approve-fallback branch December 30, 2024 11:24
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