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: candid nat to bigint utils #696

Merged
merged 8 commits into from
Aug 13, 2024
Merged

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Aug 13, 2024

Motivation

In NNS dapp and Oisy, the displayed fees of the DOGMI SNS are currently incorrectly displayed (see forum). This is the result of an incorrect intepretation of the SNS aggregator results which provides the fees encoded in Candid Nat.

Changes

  • Provide a utility to transform Candid Nat to BigInt

Todos

  • Add entry to changelog (if necessary).

peterpeterparker and others added 2 commits August 13, 2024 16:33
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Copy link
Contributor

github-actions bot commented Aug 13, 2024

size-limit report 📦

Path Size
@dfinity/ckbtc 7.91 KB (0%)
@dfinity/cketh 3.45 KB (0%)
@dfinity/cmc 1.29 KB (0%)
@dfinity/ledger-icrc 3.89 KB (0%)
@dfinity/ledger-icp 15.23 KB (0%)
@dfinity/nns 36.37 KB (0%)
@dfinity/nns-proto 140.98 KB (0%)
@dfinity/sns 15.9 KB (0%)
@dfinity/utils 4.5 KB (+0.62% 🔺)
@dfinity/ic-management 2.87 KB (0%)

peterpeterparker and others added 2 commits August 13, 2024 16:37
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Copy link
Contributor

@mstrasinskis mstrasinskis left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@peterpeterparker peterpeterparker removed the request for review from dskloetd August 13, 2024 15:04
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
Signed-off-by: David Dal Busco <david.dalbusco@dfinity.org>
@peterpeterparker peterpeterparker merged commit 477f3fc into main Aug 13, 2024
11 checks passed
@peterpeterparker peterpeterparker deleted the feat/candid-nat-bigint branch August 13, 2024 15:08
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