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

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.
@@ -2,11 +2,11 @@ import {
2
2
  bind_exports,
3
3
  poh_exports,
4
4
  user_exports
5
- } from "../../chunk-EOT6XIVG.mjs";
5
+ } from "../../chunk-PWUDQPH3.mjs";
6
6
  import {
7
7
  isSuccess,
8
8
  wallet_exports
9
- } from "../../chunk-TSPOB4DT.mjs";
9
+ } from "../../chunk-2MJFQXBZ.mjs";
10
10
  import "../../chunk-UA6XHZHX.mjs";
11
11
  import "../../chunk-FB5MHLWX.mjs";
12
12
  import "../../chunk-5JHHHLG4.mjs";
@@ -1709,11 +1709,11 @@ var persistedState2 = (0, import_middleware2.persist)(
1709
1709
  (set, get) => ({
1710
1710
  contracts: {},
1711
1711
  getContract: (chainId, contractAddress) => {
1712
- const key = `${chainId}-${contractAddress}`;
1712
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1713
1713
  return get().contracts[key];
1714
1714
  },
1715
1715
  setContractName: (chainId, contractAddress, name) => {
1716
- const key = `${chainId}-${contractAddress}`;
1716
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1717
1717
  set((state) => {
1718
1718
  const updatedContracts = {
1719
1719
  ...state.contracts,
@@ -1723,7 +1723,7 @@ var persistedState2 = (0, import_middleware2.persist)(
1723
1723
  });
1724
1724
  },
1725
1725
  setContractSymbol: (chainId, contractAddress, symbol) => {
1726
- const key = `${chainId}-${contractAddress}`;
1726
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1727
1727
  set((state) => {
1728
1728
  const updatedContracts = {
1729
1729
  ...state.contracts,
@@ -1733,7 +1733,7 @@ var persistedState2 = (0, import_middleware2.persist)(
1733
1733
  });
1734
1734
  },
1735
1735
  setContractDecimals: (chainId, contractAddress, decimals) => {
1736
- const key = `${chainId}-${contractAddress}`;
1736
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1737
1737
  set((state) => {
1738
1738
  const updatedContracts = {
1739
1739
  ...state.contracts,
@@ -1746,7 +1746,7 @@ var persistedState2 = (0, import_middleware2.persist)(
1746
1746
  set((state) => {
1747
1747
  const newContracts = { ...state.contracts };
1748
1748
  data.forEach(({ chainId, contractAddress, info }) => {
1749
- const key = `${chainId}-${contractAddress}`;
1749
+ const key = `${chainId}-${contractAddress.toLowerCase()}`;
1750
1750
  newContracts[key] = { ...newContracts[key], ...info };
1751
1751
  });
1752
1752
  return { contracts: newContracts };
@@ -2955,7 +2955,7 @@ function useMatchWalletAssets({
2955
2955
  list.unshift({
2956
2956
  chain_id: chain?.id.toString() || "",
2957
2957
  address: NATIVE_TOKEN_ADDRESS,
2958
- decimals: 18,
2958
+ decimals: chain?.nativeCurrency.decimals || 18,
2959
2959
  symbol: chain?.nativeCurrency.symbol,
2960
2960
  name: chain?.nativeCurrency.name,
2961
2961
  balance: 0,