@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.js
CHANGED
|
@@ -8619,7 +8619,8 @@ var LiquidEvmBaseWallet = class extends BaseWallet {
|
|
|
8619
8619
|
async ensureAlgorandChain() {
|
|
8620
8620
|
const provider = await this.getEvmProvider();
|
|
8621
8621
|
const { ALGORAND_CHAIN_ID_HEX, ALGORAND_EVM_CHAIN_CONFIG } = await import("liquid-accounts-evm");
|
|
8622
|
-
const
|
|
8622
|
+
const rawChainId = await provider.request({ method: "eth_chainId" });
|
|
8623
|
+
const currentChainId = typeof rawChainId === "number" ? "0x" + rawChainId.toString(16) : String(rawChainId);
|
|
8623
8624
|
if (currentChainId.toLowerCase() === ALGORAND_CHAIN_ID_HEX.toLowerCase()) {
|
|
8624
8625
|
return;
|
|
8625
8626
|
}
|