@depay/web3-wallets-evm 15.0.0 → 15.0.2

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.
@@ -59672,7 +59672,7 @@ class WindowEthereum {
59672
59672
  blockchains: supported$2.evm
59673
59673
  };}
59674
59674
 
59675
- static __initStatic2() {this.isAvailable = ()=>{
59675
+ static __initStatic2() {this.isAvailable = async()=>{
59676
59676
  return (
59677
59677
  _optionalChain$b([window, 'optionalAccess', _13 => _13.ethereum]) &&
59678
59678
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
@@ -59799,7 +59799,7 @@ class Binance extends WindowEthereum {
59799
59799
  blockchains: ['ethereum', 'bsc']
59800
59800
  };}
59801
59801
 
59802
- static __initStatic2() {this.isAvailable = ()=>{
59802
+ static __initStatic2() {this.isAvailable = async()=>{
59803
59803
  return _optionalChain$a([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
59804
59804
  !window.coin98
59805
59805
  };}
@@ -59817,7 +59817,7 @@ class Brave extends WindowEthereum {
59817
59817
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59818
59818
  };}
59819
59819
 
59820
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
59820
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
59821
59821
  } Brave.__initStatic(); Brave.__initStatic2();
59822
59822
 
59823
59823
  function _optionalChain$8(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59829,7 +59829,7 @@ class Coin98 extends WindowEthereum {
59829
59829
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59830
59830
  };}
59831
59831
 
59832
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$8([window, 'optionalAccess', _2 => _2.coin98]) };}
59832
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$8([window, 'optionalAccess', _2 => _2.coin98]) };}
59833
59833
  } Coin98.__initStatic(); Coin98.__initStatic2();
59834
59834
 
59835
59835
  function _optionalChain$7(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59841,7 +59841,7 @@ class Coinbase extends WindowEthereum {
59841
59841
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59842
59842
  };}
59843
59843
 
59844
- static __initStatic2() {this.isAvailable = ()=>{ return (_optionalChain$7([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$7([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
59844
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$7([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$7([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
59845
59845
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
59846
59846
 
59847
59847
  function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59853,7 +59853,7 @@ class CryptoCom extends WindowEthereum {
59853
59853
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59854
59854
  };}
59855
59855
 
59856
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
59856
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
59857
59857
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
59858
59858
 
59859
59859
  function _optionalChain$5(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59865,7 +59865,7 @@ class MetaMask extends WindowEthereum {
59865
59865
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59866
59866
  };}
59867
59867
 
59868
- static __initStatic2() {this.isAvailable = ()=>{
59868
+ static __initStatic2() {this.isAvailable = async()=>{
59869
59869
  return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length == 1
59870
59870
  };}
59871
59871
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
@@ -59879,7 +59879,7 @@ class Opera extends WindowEthereum {
59879
59879
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59880
59880
  };}
59881
59881
 
59882
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$4([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
59882
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$4([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
59883
59883
  } Opera.__initStatic(); Opera.__initStatic2();
59884
59884
 
59885
59885
  function _optionalChain$3(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59891,7 +59891,7 @@ class Trust extends WindowEthereum {
59891
59891
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59892
59892
  };}
59893
59893
 
59894
- static __initStatic2() {this.isAvailable = ()=>{ return (_optionalChain$3([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$3([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
59894
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$3([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$3([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
59895
59895
  } Trust.__initStatic(); Trust.__initStatic2();
59896
59896
 
59897
59897
  class Argent {
@@ -60127,13 +60127,14 @@ let currentPlainInstance;
60127
60127
  const getPlainInstance = ()=>{
60128
60128
  if(currentPlainInstance) { return currentPlainInstance }
60129
60129
  currentPlainInstance = getWalletConnectInstance(()=>{});
60130
+ return currentPlainInstance
60130
60131
  };
60131
60132
 
60132
60133
  const isConnected = async()=>{
60133
60134
  let connector = getPlainInstance();
60134
- let account;
60135
- try { account = await connector.sendCustomRequest({ method: 'eth_chainId' }); } catch (e) {}
60136
- return !!account
60135
+ let accounts;
60136
+ try { accounts = await connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (error) { console.log(error); }
60137
+ return accounts && accounts.length
60137
60138
  };
60138
60139
 
60139
60140
  const getConnectedInstance$1 = async()=>{
@@ -60163,8 +60164,8 @@ class WalletConnectV1 {
60163
60164
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
60164
60165
  };}
60165
60166
 
60166
- static __initStatic2() {this.isAvailable = ()=>{
60167
- return getConnectedInstance$1() != undefined
60167
+ static __initStatic2() {this.isAvailable = async()=>{
60168
+ return (await getConnectedInstance$1()) != undefined
60168
60169
  };}
60169
60170
 
60170
60171
  constructor() {
@@ -60459,7 +60460,7 @@ class WalletLink {
60459
60460
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas'],
60460
60461
  };}
60461
60462
 
60462
- static __initStatic2() {this.isAvailable = ()=>{ return getConnectedInstance() != undefined };}
60463
+ static __initStatic2() {this.isAvailable = async()=>{ return getConnectedInstance() != undefined };}
60463
60464
 
60464
60465
  constructor() {
60465
60466
  this.name = this.constructor.info.name;
@@ -60681,7 +60682,7 @@ class WindowSolana {
60681
60682
  blockchains: supported$1.solana
60682
60683
  };}
60683
60684
 
60684
- static __initStatic2() {this.isAvailable = ()=>{
60685
+ static __initStatic2() {this.isAvailable = async()=>{
60685
60686
  return (
60686
60687
  _optionalChain([window, 'optionalAccess', _4 => _4.solana]) &&
60687
60688
  !_optionalChain([window, 'optionalAccess', _5 => _5.solana, 'optionalAccess', _6 => _6.isPhantom]) &&
@@ -60784,7 +60785,7 @@ const getWallets = async()=>{
60784
60785
 
60785
60786
  let wallet = wallets[key];
60786
60787
 
60787
- if(wallet.isAvailable()) {
60788
+ if(await wallet.isAvailable()) {
60788
60789
  let instance;
60789
60790
 
60790
60791
  if(wallet.getConnectedInstance) {
package/dist/esm/index.js CHANGED
@@ -575,7 +575,7 @@ class WindowEthereum {
575
575
  blockchains: supported$2.evm
576
576
  };}
577
577
 
578
- static __initStatic2() {this.isAvailable = ()=>{
578
+ static __initStatic2() {this.isAvailable = async()=>{
579
579
  return (
580
580
  _optionalChain$c([window, 'optionalAccess', _13 => _13.ethereum]) &&
581
581
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
@@ -702,7 +702,7 @@ class Binance extends WindowEthereum {
702
702
  blockchains: ['ethereum', 'bsc']
703
703
  };}
704
704
 
705
- static __initStatic2() {this.isAvailable = ()=>{
705
+ static __initStatic2() {this.isAvailable = async()=>{
706
706
  return _optionalChain$b([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
707
707
  !window.coin98
708
708
  };}
@@ -720,7 +720,7 @@ class Brave extends WindowEthereum {
720
720
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
721
721
  };}
722
722
 
723
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
723
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
724
724
  } Brave.__initStatic(); Brave.__initStatic2();
725
725
 
726
726
  function _optionalChain$9(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -732,7 +732,7 @@ class Coin98 extends WindowEthereum {
732
732
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
733
733
  };}
734
734
 
735
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$9([window, 'optionalAccess', _2 => _2.coin98]) };}
735
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _2 => _2.coin98]) };}
736
736
  } Coin98.__initStatic(); Coin98.__initStatic2();
737
737
 
738
738
  function _optionalChain$8(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -744,7 +744,7 @@ class Coinbase extends WindowEthereum {
744
744
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
745
745
  };}
746
746
 
747
- static __initStatic2() {this.isAvailable = ()=>{ return (_optionalChain$8([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$8([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
747
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$8([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$8([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
748
748
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
749
749
 
750
750
  function _optionalChain$7(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -756,7 +756,7 @@ class CryptoCom extends WindowEthereum {
756
756
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
757
757
  };}
758
758
 
759
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
759
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
760
760
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
761
761
 
762
762
  function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -768,7 +768,7 @@ class MetaMask extends WindowEthereum {
768
768
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
769
769
  };}
770
770
 
771
- static __initStatic2() {this.isAvailable = ()=>{
771
+ static __initStatic2() {this.isAvailable = async()=>{
772
772
  return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length == 1
773
773
  };}
774
774
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
@@ -782,7 +782,7 @@ class Opera extends WindowEthereum {
782
782
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
783
783
  };}
784
784
 
785
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
785
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
786
786
  } Opera.__initStatic(); Opera.__initStatic2();
787
787
 
788
788
  function _optionalChain$4(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -884,7 +884,7 @@ class WindowSolana {
884
884
  blockchains: supported$1.solana
885
885
  };}
886
886
 
887
- static __initStatic2() {this.isAvailable = ()=>{
887
+ static __initStatic2() {this.isAvailable = async()=>{
888
888
  return (
889
889
  _optionalChain$3([window, 'optionalAccess', _4 => _4.solana]) &&
890
890
  !_optionalChain$3([window, 'optionalAccess', _5 => _5.solana, 'optionalAccess', _6 => _6.isPhantom]) &&
@@ -973,7 +973,7 @@ class Phantom extends WindowSolana {
973
973
  blockchains: supported$1.solana
974
974
  };}
975
975
 
976
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$2([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isPhantom]) };}
976
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$2([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isPhantom]) };}
977
977
  } Phantom.__initStatic(); Phantom.__initStatic2();
978
978
 
979
979
  function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -985,7 +985,7 @@ class Trust extends WindowEthereum {
985
985
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
986
986
  };}
987
987
 
988
- static __initStatic2() {this.isAvailable = ()=>{ return (_optionalChain$1([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$1([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
988
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$1([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$1([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
989
989
  } Trust.__initStatic(); Trust.__initStatic2();
990
990
 
991
991
  class Argent {
@@ -1221,13 +1221,14 @@ let currentPlainInstance;
1221
1221
  const getPlainInstance = ()=>{
1222
1222
  if(currentPlainInstance) { return currentPlainInstance }
1223
1223
  currentPlainInstance = getWalletConnectInstance(()=>{});
1224
+ return currentPlainInstance
1224
1225
  };
1225
1226
 
1226
1227
  const isConnected = async()=>{
1227
1228
  let connector = getPlainInstance();
1228
- let account;
1229
- try { account = await connector.sendCustomRequest({ method: 'eth_chainId' }); } catch (e) {}
1230
- return !!account
1229
+ let accounts;
1230
+ try { accounts = await connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (error) { console.log(error); }
1231
+ return accounts && accounts.length
1231
1232
  };
1232
1233
 
1233
1234
  const getConnectedInstance$1 = async()=>{
@@ -1257,8 +1258,8 @@ class WalletConnectV1 {
1257
1258
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
1258
1259
  };}
1259
1260
 
1260
- static __initStatic2() {this.isAvailable = ()=>{
1261
- return getConnectedInstance$1() != undefined
1261
+ static __initStatic2() {this.isAvailable = async()=>{
1262
+ return (await getConnectedInstance$1()) != undefined
1262
1263
  };}
1263
1264
 
1264
1265
  constructor() {
@@ -1553,7 +1554,7 @@ class WalletLink {
1553
1554
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas'],
1554
1555
  };}
1555
1556
 
1556
- static __initStatic2() {this.isAvailable = ()=>{ return getConnectedInstance() != undefined };}
1557
+ static __initStatic2() {this.isAvailable = async()=>{ return getConnectedInstance() != undefined };}
1557
1558
 
1558
1559
  constructor() {
1559
1560
  this.name = this.constructor.info.name;
@@ -1700,7 +1701,7 @@ const getWallets = async()=>{
1700
1701
 
1701
1702
  let wallet = wallets[key];
1702
1703
 
1703
- if(wallet.isAvailable()) {
1704
+ if(await wallet.isAvailable()) {
1704
1705
  let instance;
1705
1706
 
1706
1707
  if(wallet.getConnectedInstance) {
@@ -59671,7 +59671,7 @@
59671
59671
  blockchains: supported$2.evm
59672
59672
  };}
59673
59673
 
59674
- static __initStatic2() {this.isAvailable = ()=>{
59674
+ static __initStatic2() {this.isAvailable = async()=>{
59675
59675
  return (
59676
59676
  _optionalChain$b([window, 'optionalAccess', _13 => _13.ethereum]) &&
59677
59677
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
@@ -59798,7 +59798,7 @@
59798
59798
  blockchains: ['ethereum', 'bsc']
59799
59799
  };}
59800
59800
 
59801
- static __initStatic2() {this.isAvailable = ()=>{
59801
+ static __initStatic2() {this.isAvailable = async()=>{
59802
59802
  return _optionalChain$a([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
59803
59803
  !window.coin98
59804
59804
  };}
@@ -59816,7 +59816,7 @@
59816
59816
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59817
59817
  };}
59818
59818
 
59819
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
59819
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
59820
59820
  } Brave.__initStatic(); Brave.__initStatic2();
59821
59821
 
59822
59822
  function _optionalChain$8(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59828,7 +59828,7 @@
59828
59828
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59829
59829
  };}
59830
59830
 
59831
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$8([window, 'optionalAccess', _2 => _2.coin98]) };}
59831
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$8([window, 'optionalAccess', _2 => _2.coin98]) };}
59832
59832
  } Coin98.__initStatic(); Coin98.__initStatic2();
59833
59833
 
59834
59834
  function _optionalChain$7(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59840,7 +59840,7 @@
59840
59840
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59841
59841
  };}
59842
59842
 
59843
- static __initStatic2() {this.isAvailable = ()=>{ return (_optionalChain$7([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$7([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
59843
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$7([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$7([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
59844
59844
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
59845
59845
 
59846
59846
  function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59852,7 +59852,7 @@
59852
59852
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59853
59853
  };}
59854
59854
 
59855
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
59855
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
59856
59856
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
59857
59857
 
59858
59858
  function _optionalChain$5(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59864,7 +59864,7 @@
59864
59864
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59865
59865
  };}
59866
59866
 
59867
- static __initStatic2() {this.isAvailable = ()=>{
59867
+ static __initStatic2() {this.isAvailable = async()=>{
59868
59868
  return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length == 1
59869
59869
  };}
59870
59870
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
@@ -59878,7 +59878,7 @@
59878
59878
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59879
59879
  };}
59880
59880
 
59881
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$4([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
59881
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$4([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
59882
59882
  } Opera.__initStatic(); Opera.__initStatic2();
59883
59883
 
59884
59884
  function _optionalChain$3(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -59890,7 +59890,7 @@
59890
59890
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
59891
59891
  };}
59892
59892
 
59893
- static __initStatic2() {this.isAvailable = ()=>{ return (_optionalChain$3([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$3([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
59893
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$3([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$3([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
59894
59894
  } Trust.__initStatic(); Trust.__initStatic2();
59895
59895
 
59896
59896
  class Argent {
@@ -60126,13 +60126,14 @@
60126
60126
  const getPlainInstance = ()=>{
60127
60127
  if(currentPlainInstance) { return currentPlainInstance }
60128
60128
  currentPlainInstance = getWalletConnectInstance(()=>{});
60129
+ return currentPlainInstance
60129
60130
  };
60130
60131
 
60131
60132
  const isConnected = async()=>{
60132
60133
  let connector = getPlainInstance();
60133
- let account;
60134
- try { account = await connector.sendCustomRequest({ method: 'eth_chainId' }); } catch (e) {}
60135
- return !!account
60134
+ let accounts;
60135
+ try { accounts = await connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (error) { console.log(error); }
60136
+ return accounts && accounts.length
60136
60137
  };
60137
60138
 
60138
60139
  const getConnectedInstance$1 = async()=>{
@@ -60162,8 +60163,8 @@
60162
60163
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
60163
60164
  };}
60164
60165
 
60165
- static __initStatic2() {this.isAvailable = ()=>{
60166
- return getConnectedInstance$1() != undefined
60166
+ static __initStatic2() {this.isAvailable = async()=>{
60167
+ return (await getConnectedInstance$1()) != undefined
60167
60168
  };}
60168
60169
 
60169
60170
  constructor() {
@@ -60458,7 +60459,7 @@
60458
60459
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas'],
60459
60460
  };}
60460
60461
 
60461
- static __initStatic2() {this.isAvailable = ()=>{ return getConnectedInstance() != undefined };}
60462
+ static __initStatic2() {this.isAvailable = async()=>{ return getConnectedInstance() != undefined };}
60462
60463
 
60463
60464
  constructor() {
60464
60465
  this.name = this.constructor.info.name;
@@ -60680,7 +60681,7 @@
60680
60681
  blockchains: supported$1.solana
60681
60682
  };}
60682
60683
 
60683
- static __initStatic2() {this.isAvailable = ()=>{
60684
+ static __initStatic2() {this.isAvailable = async()=>{
60684
60685
  return (
60685
60686
  _optionalChain([window, 'optionalAccess', _4 => _4.solana]) &&
60686
60687
  !_optionalChain([window, 'optionalAccess', _5 => _5.solana, 'optionalAccess', _6 => _6.isPhantom]) &&
@@ -60783,7 +60784,7 @@
60783
60784
 
60784
60785
  let wallet = wallets[key];
60785
60786
 
60786
- if(wallet.isAvailable()) {
60787
+ if(await wallet.isAvailable()) {
60787
60788
  let instance;
60788
60789
 
60789
60790
  if(wallet.getConnectedInstance) {
package/dist/umd/index.js CHANGED
@@ -573,7 +573,7 @@
573
573
  blockchains: supported$2.evm
574
574
  };}
575
575
 
576
- static __initStatic2() {this.isAvailable = ()=>{
576
+ static __initStatic2() {this.isAvailable = async()=>{
577
577
  return (
578
578
  _optionalChain$c([window, 'optionalAccess', _13 => _13.ethereum]) &&
579
579
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
@@ -700,7 +700,7 @@
700
700
  blockchains: ['ethereum', 'bsc']
701
701
  };}
702
702
 
703
- static __initStatic2() {this.isAvailable = ()=>{
703
+ static __initStatic2() {this.isAvailable = async()=>{
704
704
  return _optionalChain$b([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
705
705
  !window.coin98
706
706
  };}
@@ -718,7 +718,7 @@
718
718
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
719
719
  };}
720
720
 
721
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
721
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
722
722
  } Brave.__initStatic(); Brave.__initStatic2();
723
723
 
724
724
  function _optionalChain$9(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -730,7 +730,7 @@
730
730
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
731
731
  };}
732
732
 
733
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$9([window, 'optionalAccess', _2 => _2.coin98]) };}
733
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _2 => _2.coin98]) };}
734
734
  } Coin98.__initStatic(); Coin98.__initStatic2();
735
735
 
736
736
  function _optionalChain$8(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -742,7 +742,7 @@
742
742
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
743
743
  };}
744
744
 
745
- static __initStatic2() {this.isAvailable = ()=>{ return (_optionalChain$8([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$8([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
745
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$8([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$8([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
746
746
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
747
747
 
748
748
  function _optionalChain$7(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -754,7 +754,7 @@
754
754
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
755
755
  };}
756
756
 
757
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
757
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
758
758
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
759
759
 
760
760
  function _optionalChain$6(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -766,7 +766,7 @@
766
766
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
767
767
  };}
768
768
 
769
- static __initStatic2() {this.isAvailable = ()=>{
769
+ static __initStatic2() {this.isAvailable = async()=>{
770
770
  return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length == 1
771
771
  };}
772
772
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
@@ -780,7 +780,7 @@
780
780
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
781
781
  };}
782
782
 
783
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
783
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
784
784
  } Opera.__initStatic(); Opera.__initStatic2();
785
785
 
786
786
  function _optionalChain$4(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -882,7 +882,7 @@
882
882
  blockchains: supported$1.solana
883
883
  };}
884
884
 
885
- static __initStatic2() {this.isAvailable = ()=>{
885
+ static __initStatic2() {this.isAvailable = async()=>{
886
886
  return (
887
887
  _optionalChain$3([window, 'optionalAccess', _4 => _4.solana]) &&
888
888
  !_optionalChain$3([window, 'optionalAccess', _5 => _5.solana, 'optionalAccess', _6 => _6.isPhantom]) &&
@@ -971,7 +971,7 @@
971
971
  blockchains: supported$1.solana
972
972
  };}
973
973
 
974
- static __initStatic2() {this.isAvailable = ()=>{ return _optionalChain$2([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isPhantom]) };}
974
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$2([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isPhantom]) };}
975
975
  } Phantom.__initStatic(); Phantom.__initStatic2();
976
976
 
977
977
  function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
@@ -983,7 +983,7 @@
983
983
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
984
984
  };}
985
985
 
986
- static __initStatic2() {this.isAvailable = ()=>{ return (_optionalChain$1([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$1([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
986
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$1([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$1([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
987
987
  } Trust.__initStatic(); Trust.__initStatic2();
988
988
 
989
989
  class Argent {
@@ -1219,13 +1219,14 @@
1219
1219
  const getPlainInstance = ()=>{
1220
1220
  if(currentPlainInstance) { return currentPlainInstance }
1221
1221
  currentPlainInstance = getWalletConnectInstance(()=>{});
1222
+ return currentPlainInstance
1222
1223
  };
1223
1224
 
1224
1225
  const isConnected = async()=>{
1225
1226
  let connector = getPlainInstance();
1226
- let account;
1227
- try { account = await connector.sendCustomRequest({ method: 'eth_chainId' }); } catch (e) {}
1228
- return !!account
1227
+ let accounts;
1228
+ try { accounts = await connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (error) { console.log(error); }
1229
+ return accounts && accounts.length
1229
1230
  };
1230
1231
 
1231
1232
  const getConnectedInstance$1 = async()=>{
@@ -1255,8 +1256,8 @@
1255
1256
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas']
1256
1257
  };}
1257
1258
 
1258
- static __initStatic2() {this.isAvailable = ()=>{
1259
- return getConnectedInstance$1() != undefined
1259
+ static __initStatic2() {this.isAvailable = async()=>{
1260
+ return (await getConnectedInstance$1()) != undefined
1260
1261
  };}
1261
1262
 
1262
1263
  constructor() {
@@ -1551,7 +1552,7 @@
1551
1552
  blockchains: ['ethereum', 'bsc', 'polygon', 'velas'],
1552
1553
  };}
1553
1554
 
1554
- static __initStatic2() {this.isAvailable = ()=>{ return getConnectedInstance() != undefined };}
1555
+ static __initStatic2() {this.isAvailable = async()=>{ return getConnectedInstance() != undefined };}
1555
1556
 
1556
1557
  constructor() {
1557
1558
  this.name = this.constructor.info.name;
@@ -1698,7 +1699,7 @@
1698
1699
 
1699
1700
  let wallet = wallets[key];
1700
1701
 
1701
- if(wallet.isAvailable()) {
1702
+ if(await wallet.isAvailable()) {
1702
1703
  let instance;
1703
1704
 
1704
1705
  if(wallet.getConnectedInstance) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/web3-wallets-evm",
3
3
  "moduleName": "Web3Wallets",
4
- "version": "15.0.0",
4
+ "version": "15.0.2",
5
5
  "description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
6
6
  "main": "dist/umd/index.evm.js",
7
7
  "module": "dist/esm/index.evm.js",