@web3auth/modal 9.2.1 → 9.2.3

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.
@@ -29,7 +29,8 @@ class Web3Auth extends noModal.Web3AuthNoModal {
29
29
  super.checkInitRequirements();
30
30
  let projectConfig;
31
31
  try {
32
- projectConfig = await base.fetchProjectConfig(this.options.clientId, this.options.web3AuthNetwork);
32
+ var _this$options$account;
33
+ projectConfig = await base.fetchProjectConfig(this.options.clientId, this.options.web3AuthNetwork, (_this$options$account = this.options.accountAbstractionProvider) === null || _this$options$account === void 0 ? void 0 : _this$options$account.config.smartAccountInit.name);
33
34
  } catch (e) {
34
35
  base.log.error("Failed to fetch project configurations", e);
35
36
  throw base.WalletInitializationError.notReady("failed to fetch project configurations", e);
@@ -27,7 +27,8 @@ class Web3Auth extends Web3AuthNoModal {
27
27
  super.checkInitRequirements();
28
28
  let projectConfig;
29
29
  try {
30
- projectConfig = await fetchProjectConfig(this.options.clientId, this.options.web3AuthNetwork);
30
+ var _this$options$account;
31
+ projectConfig = await fetchProjectConfig(this.options.clientId, this.options.web3AuthNetwork, (_this$options$account = this.options.accountAbstractionProvider) === null || _this$options$account === void 0 ? void 0 : _this$options$account.config.smartAccountInit.name);
31
32
  } catch (e) {
32
33
  log.error("Failed to fetch project configurations", e);
33
34
  throw WalletInitializationError.notReady("failed to fetch project configurations", e);
package/dist/modal.cjs.js CHANGED
@@ -160,7 +160,8 @@ class Web3Auth extends no_modal_namespaceObject.Web3AuthNoModal {
160
160
  super.checkInitRequirements();
161
161
  let projectConfig;
162
162
  try {
163
- projectConfig = await (0,base_.fetchProjectConfig)(this.options.clientId, this.options.web3AuthNetwork);
163
+ var _this$options$account;
164
+ projectConfig = await (0,base_.fetchProjectConfig)(this.options.clientId, this.options.web3AuthNetwork, (_this$options$account = this.options.accountAbstractionProvider) === null || _this$options$account === void 0 ? void 0 : _this$options$account.config.smartAccountInit.name);
164
165
  } catch (e) {
165
166
  base_.log.error("Failed to fetch project configurations", e);
166
167
  throw base_.WalletInitializationError.notReady("failed to fetch project configurations", e);
package/dist/modal.esm.js CHANGED
@@ -101,7 +101,8 @@ class Web3Auth extends Web3AuthNoModal {
101
101
  super.checkInitRequirements();
102
102
  let projectConfig;
103
103
  try {
104
- projectConfig = await fetchProjectConfig(this.options.clientId, this.options.web3AuthNetwork);
104
+ var _this$options$account;
105
+ projectConfig = await fetchProjectConfig(this.options.clientId, this.options.web3AuthNetwork, (_this$options$account = this.options.accountAbstractionProvider) === null || _this$options$account === void 0 ? void 0 : _this$options$account.config.smartAccountInit.name);
105
106
  } catch (e) {
106
107
  log.error("Failed to fetch project configurations", e);
107
108
  throw WalletInitializationError.notReady("failed to fetch project configurations", e);