Skip to content

Commit

Permalink
fix(wallet): Nat values are now BigInts, so fix the parse output
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jun 20, 2021
1 parent 3f8cdfd commit 1ff1244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dapp-svelte-wallet/ui/src/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function parseValue(str, displayInfo) {
X`${str} exceeds ${decimalPlaces} decimal places`,
);

return parseInt(`${unitstr}${dec0str0}`, 10);
return BigInt(`${unitstr}${dec0str0}`);
}

/**
Expand Down

0 comments on commit 1ff1244

Please sign in to comment.