graz 0.1.0-alpha.3 → 0.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -732,7 +732,7 @@ declare const useChain: ({ chainId }: {
|
|
|
732
732
|
}) => {
|
|
733
733
|
convertMinimalDenomToDenom: (searchMinimalDenom: string, value: string) => {
|
|
734
734
|
denom: string;
|
|
735
|
-
value:
|
|
735
|
+
value: string;
|
|
736
736
|
} | undefined;
|
|
737
737
|
currencies: _keplr_wallet_types.AppCurrency[];
|
|
738
738
|
data: GrazChain;
|
package/dist/index.js
CHANGED
|
@@ -2612,7 +2612,7 @@ var useChain = ({ chainId }) => {
|
|
|
2612
2612
|
return;
|
|
2613
2613
|
return {
|
|
2614
2614
|
denom: currency.coinDenom,
|
|
2615
|
-
value: Number(value)
|
|
2615
|
+
value: String(Number(value) / Math.pow(10, currency.coinDecimals))
|
|
2616
2616
|
};
|
|
2617
2617
|
};
|
|
2618
2618
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -2503,7 +2503,7 @@ var useChain = ({ chainId }) => {
|
|
|
2503
2503
|
return;
|
|
2504
2504
|
return {
|
|
2505
2505
|
denom: currency.coinDenom,
|
|
2506
|
-
value: Number(value)
|
|
2506
|
+
value: String(Number(value) / Math.pow(10, currency.coinDecimals))
|
|
2507
2507
|
};
|
|
2508
2508
|
};
|
|
2509
2509
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graz",
|
|
3
3
|
"description": "React hooks for Cosmos",
|
|
4
|
-
"version": "0.1.0-alpha.
|
|
4
|
+
"version": "0.1.0-alpha.4",
|
|
5
5
|
"author": "Griko Nibras <griko@strange.love>",
|
|
6
6
|
"repository": "https://github.com/strangelove-ventures/graz.git",
|
|
7
7
|
"homepage": "https://github.com/strangelove-ventures/graz",
|