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: icrc21_canister_call_consent_message for ledger-icrc #710

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Sep 3, 2024

Motivation

Add support for icrc21_canister_call_consent_message to @dfinity/ledger-icrc.

Notes

It annoys me a bit that the close basically duplicates the code of ICP (provided in PR #709) but, not sure it is worth the effort at this point to create a util or even lib for that particular topic. We might do so if more canisters starts implementing consent message but, happy to hear any thoughts about it.

Changes

  • Expose and implement new function consentMessage.
  • Add a new parameter for the request.
  • Map the potential error.

Copy link
Contributor

github-actions bot commented Sep 3, 2024

size-limit report 📦

Path Size
@dfinity/ckbtc 7.98 KB (0%)
@dfinity/cketh 3.45 KB (0%)
@dfinity/cmc 1.29 KB (0%)
@dfinity/ledger-icrc 4.17 KB (+7.23% 🔺)
@dfinity/ledger-icp 15.43 KB (0%)
@dfinity/nns 36.48 KB (0%)
@dfinity/nns-proto 140.98 KB (0%)
@dfinity/sns 15.92 KB (0%)
@dfinity/utils 4.5 KB (0%)
@dfinity/ic-management 2.92 KB (0%)

Copy link
Contributor

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

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

Thanks!

peterpeterparker added a commit that referenced this pull request Sep 3, 2024
# Motivation

Add similar doc for Icrc consent message request objects for ICP as for
ICRC provided in PR #710.

Signed-off-by: David Dal Busco <[email protected]>
peterpeterparker added a commit that referenced this pull request Sep 4, 2024
# Motivation

The `@dfinity/ledger-icrc` gained weight (just a bit) in #710. Given
that we are really precaucious, it makes the test fails.

# Changes

- Add 1kb to the limit (5 instead of 4)

Signed-off-by: David Dal Busco <[email protected]>
@peterpeterparker peterpeterparker merged commit 90d1109 into main Sep 4, 2024
11 checks passed
@peterpeterparker peterpeterparker deleted the feat/ledger-icrc-consent-message branch September 4, 2024 14:53
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