@d13co/use-wallet 4.5.7 → 4.5.8
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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8664,7 +8664,8 @@ var LiquidEvmBaseWallet = class extends BaseWallet {
|
|
|
8664
8664
|
async ensureAlgorandChain() {
|
|
8665
8665
|
const provider = await this.getEvmProvider();
|
|
8666
8666
|
const { ALGORAND_CHAIN_ID_HEX, ALGORAND_EVM_CHAIN_CONFIG } = await import("liquid-accounts-evm");
|
|
8667
|
-
const
|
|
8667
|
+
const rawChainId = await provider.request({ method: "eth_chainId" });
|
|
8668
|
+
const currentChainId = typeof rawChainId === "number" ? "0x" + rawChainId.toString(16) : String(rawChainId);
|
|
8668
8669
|
if (currentChainId.toLowerCase() === ALGORAND_CHAIN_ID_HEX.toLowerCase()) {
|
|
8669
8670
|
return;
|
|
8670
8671
|
}
|