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

fix: utilize ICP Index accountBalance and getTransactions with account identifier hex directly #501

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

peterpeterparker
Copy link
Member

Motivation

Utilize ICP Index accountBalance and getTransactions with account identifier hex directly, eliminating the need for conversion with Buffer and resolving usage in non-polyfilled environments.

Changes

  • if hex, use hex directly without converting first to an account identifier

Issue

Oisy Wallet PR dfinity/oisy-wallet#497 and potentially a bug we will face in NNS dapp as well in the future.

image

Copy link
Contributor

github-actions bot commented Dec 12, 2023

size-limit report 📦

Path Size
@dfinity/ckbtc 6.98 KB (0%)
@dfinity/cmc 1.01 KB (0%)
@dfinity/ledger-icrc 2.93 KB (0%)
@dfinity/ledger-icp 14.95 KB (+0.06% 🔺)
@dfinity/nns 34.58 KB (+0.01% 🔺)
@dfinity/nns-proto 76.42 KB (0%)
@dfinity/sns 15.15 KB (0%)
@dfinity/utils 4.37 KB (0%)
@dfinity/ic-management 1.93 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.

LGTM!

@peterpeterparker peterpeterparker merged commit d9ac8f1 into main Dec 12, 2023
10 checks passed
@peterpeterparker peterpeterparker deleted the feat/invert-param-intepretation branch December 12, 2023 08:44
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