@matchain/matchid-sdk-react 0.1.48-alpha.24 → 0.1.48-alpha.25

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.
@@ -11,7 +11,7 @@ import {
11
11
  useUserInfo,
12
12
  verifyPohApi,
13
13
  wallet_exports
14
- } from "./chunk-TSPOB4DT.mjs";
14
+ } from "./chunk-UR57LTMH.mjs";
15
15
  import {
16
16
  __export
17
17
  } from "./chunk-J5LGTIGS.mjs";
@@ -94,4 +94,4 @@ export {
94
94
  user_exports,
95
95
  api_exports
96
96
  };
97
- //# sourceMappingURL=chunk-EOT6XIVG.mjs.map
97
+ //# sourceMappingURL=chunk-MD3AVLZD.mjs.map
@@ -1310,11 +1310,11 @@ var persistedState3 = persist3(
1310
1310
  (set, get) => ({
1311
1311
  contracts: {},
1312
1312
  getContract: (chainId, contractAddress) => {
1313
- const key = `${chainId}-${contractAddress}`;
1313
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1314
1314
  return get().contracts[key];
1315
1315
  },
1316
1316
  setContractName: (chainId, contractAddress, name) => {
1317
- const key = `${chainId}-${contractAddress}`;
1317
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1318
1318
  set((state) => {
1319
1319
  const updatedContracts = {
1320
1320
  ...state.contracts,
@@ -1324,7 +1324,7 @@ var persistedState3 = persist3(
1324
1324
  });
1325
1325
  },
1326
1326
  setContractSymbol: (chainId, contractAddress, symbol) => {
1327
- const key = `${chainId}-${contractAddress}`;
1327
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1328
1328
  set((state) => {
1329
1329
  const updatedContracts = {
1330
1330
  ...state.contracts,
@@ -1334,7 +1334,7 @@ var persistedState3 = persist3(
1334
1334
  });
1335
1335
  },
1336
1336
  setContractDecimals: (chainId, contractAddress, decimals) => {
1337
- const key = `${chainId}-${contractAddress}`;
1337
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1338
1338
  set((state) => {
1339
1339
  const updatedContracts = {
1340
1340
  ...state.contracts,
@@ -1347,7 +1347,7 @@ var persistedState3 = persist3(
1347
1347
  set((state) => {
1348
1348
  const newContracts = { ...state.contracts };
1349
1349
  data.forEach(({ chainId, contractAddress, info }) => {
1350
- const key = `${chainId}-${contractAddress}`;
1350
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1351
1351
  newContracts[key] = { ...newContracts[key], ...info };
1352
1352
  });
1353
1353
  return { contracts: newContracts };
@@ -1780,7 +1780,7 @@ function useMatchWalletAssets({
1780
1780
  list.unshift({
1781
1781
  chain_id: chain?.id.toString() || "",
1782
1782
  address: NATIVE_TOKEN_ADDRESS,
1783
- decimals: 18,
1783
+ decimals: chain?.nativeCurrency.decimals || 18,
1784
1784
  symbol: chain?.nativeCurrency.symbol,
1785
1785
  name: chain?.nativeCurrency.name,
1786
1786
  balance: 0,
@@ -6367,4 +6367,4 @@ export {
6367
6367
  MatchProvider,
6368
6368
  useMatch
6369
6369
  };
6370
- //# sourceMappingURL=chunk-TSPOB4DT.mjs.map
6370
+ //# sourceMappingURL=chunk-UR57LTMH.mjs.map