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

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.
@@ -12,7 +12,7 @@ import {
12
12
  useTransaction,
13
13
  useUserInfo,
14
14
  useWallet
15
- } from "../chunk-2MJFQXBZ.mjs";
15
+ } from "../chunk-IKLQAPKE.mjs";
16
16
  import "../chunk-UA6XHZHX.mjs";
17
17
  import {
18
18
  useLayout_exports
package/dist/index.js CHANGED
@@ -5740,7 +5740,7 @@ var Item = ({ data }) => {
5740
5740
  data: data.input
5741
5741
  });
5742
5742
  const value = decodeData.args[1];
5743
- return (0, import_viem7.formatUnits)(value, contracts[`${chainId}-${data.to}`]?.decimals || 18);
5743
+ return (0, import_viem7.formatUnits)(value, contracts[`${chainId}-${data.to.toLowerCase()}`]?.decimals || 18);
5744
5744
  }
5745
5745
  return chainFormatUnits(BigInt(data.value));
5746
5746
  }, [data.input, transferType, data.value, contracts, chainId, data.to]);
@@ -5785,8 +5785,8 @@ var Item = ({ data }) => {
5785
5785
  }, [status, data.hash]);
5786
5786
  const symbol = (0, import_react32.useMemo)(() => {
5787
5787
  if (transferType == "erc20_transfer") {
5788
- const contract = contracts[`${chainId}-${data.to}`];
5789
- return contracts?.symbol || contracts?.name || "unknown";
5788
+ const contract = contracts[`${chainId}-${data.to.toLowerCase()}`];
5789
+ return contract?.symbol || contract?.name || "unknown";
5790
5790
  }
5791
5791
  return chain?.nativeCurrency.symbol || chain?.nativeCurrency.name;
5792
5792
  }, [transferType, chain, contracts, chainId, data.to]);