Skip to content

Commit

Permalink
feat(frontend): bump utils dependency and adapt renamed function (#2018)
Browse files Browse the repository at this point in the history
# Motivation

We have renamed `candidNatArrayToBigInt` into
`candidNumberArrayToBigInt` which is more generic.

# Changes

- Update `@next` dependency of ic-js
- Adapt related function usage
  • Loading branch information
peterpeterparker authored Aug 14, 2024
1 parent 69087c4 commit 694dc55
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
"@dfinity/agent": "^1.4.0",
"@dfinity/auth-client": "^1.4.0",
"@dfinity/candid": "^1.4.0",
"@dfinity/ckbtc": "^2.5.0-next-2024-08-13",
"@dfinity/cketh": "^3.2.0-next-2024-08-13",
"@dfinity/ckbtc": "^2.5.0-next-2024-08-14",
"@dfinity/cketh": "^3.2.0-next-2024-08-14",
"@dfinity/gix-components": "^4.6.0",
"@dfinity/ic-management": "^5.1.0-next-2024-08-13",
"@dfinity/ledger-icp": "^2.4.0-next-2024-08-13",
"@dfinity/ledger-icrc": "^2.4.0-next-2024-08-13",
"@dfinity/ic-management": "^5.1.0-next-2024-08-14",
"@dfinity/ledger-icp": "^2.4.0-next-2024-08-14",
"@dfinity/ledger-icrc": "^2.4.0-next-2024-08-14",
"@dfinity/principal": "^1.4.0",
"@dfinity/utils": "^2.4.0-next-2024-08-13",
"@dfinity/utils": "^2.4.0-next-2024-08-14",
"@dfinity/verifiable-credentials": "^0.0.2",
"@junobuild/analytics": "^0.0.24",
"@metamask/detect-provider": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/build.tokens.sns.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Ed25519KeyIdentity } from '@dfinity/identity';
import { IcrcIndexNgCanister, IcrcMetadataResponseEntries } from '@dfinity/ledger-icrc';
import { Principal } from '@dfinity/principal';
import {
candidNatArrayToBigInt,
candidNumberArrayToBigInt,
createAgent,
fromNullable,
isNullish,
Expand Down Expand Up @@ -87,7 +87,7 @@ const mapOptionalToken = (response) => {
acc = {
...acc,
...('Nat' in value &&
nonNullish(fromNullable(value.Nat)) && { fee: candidNatArrayToBigInt(value.Nat) })
nonNullish(fromNullable(value.Nat)) && { fee: candidNumberArrayToBigInt(value.Nat) })
};
break;
case IcrcMetadataResponseEntries.DECIMALS:
Expand Down

0 comments on commit 694dc55

Please sign in to comment.