@web3auth/modal 9.5.4 → 9.7.0
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.
|
@@ -126,7 +126,7 @@ class Web3Auth extends noModal.Web3AuthNoModal {
|
|
|
126
126
|
sessionTime,
|
|
127
127
|
privateKeyProvider
|
|
128
128
|
} = this.coreOptions;
|
|
129
|
-
const finalChainConfig = _objectSpread(_objectSpread({}, base.getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha = this.coreOptions.chainConfig) === null || _this$coreOptions$cha === void 0 ? void 0 : _this$coreOptions$cha.chainId)), chainConfig);
|
|
129
|
+
const finalChainConfig = _objectSpread(_objectSpread({}, base.getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha = this.coreOptions.chainConfig) === null || _this$coreOptions$cha === void 0 ? void 0 : _this$coreOptions$cha.chainId, clientId)), chainConfig);
|
|
130
130
|
if (!privateKeyProvider) {
|
|
131
131
|
throw base.WalletInitializationError.invalidParams("privateKeyProvider is required");
|
|
132
132
|
}
|
|
@@ -180,7 +180,7 @@ class Web3Auth extends noModal.Web3AuthNoModal {
|
|
|
180
180
|
// and chainNamespace.
|
|
181
181
|
if (!adapter.chainConfigProxy) {
|
|
182
182
|
var _this$coreOptions$cha2;
|
|
183
|
-
const chainConfig = _objectSpread(_objectSpread({}, base.getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha2 = this.coreOptions.chainConfig) === null || _this$coreOptions$cha2 === void 0 ? void 0 : _this$coreOptions$cha2.chainId)), this.coreOptions.chainConfig);
|
|
183
|
+
const chainConfig = _objectSpread(_objectSpread({}, base.getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha2 = this.coreOptions.chainConfig) === null || _this$coreOptions$cha2 === void 0 ? void 0 : _this$coreOptions$cha2.chainId, this.coreOptions.clientId)), this.coreOptions.chainConfig);
|
|
184
184
|
this.walletAdapters[adapterName].setAdapterSettings({
|
|
185
185
|
chainConfig
|
|
186
186
|
});
|
|
@@ -124,7 +124,7 @@ class Web3Auth extends Web3AuthNoModal {
|
|
|
124
124
|
sessionTime,
|
|
125
125
|
privateKeyProvider
|
|
126
126
|
} = this.coreOptions;
|
|
127
|
-
const finalChainConfig = _objectSpread(_objectSpread({}, getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha = this.coreOptions.chainConfig) === null || _this$coreOptions$cha === void 0 ? void 0 : _this$coreOptions$cha.chainId)), chainConfig);
|
|
127
|
+
const finalChainConfig = _objectSpread(_objectSpread({}, getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha = this.coreOptions.chainConfig) === null || _this$coreOptions$cha === void 0 ? void 0 : _this$coreOptions$cha.chainId, clientId)), chainConfig);
|
|
128
128
|
if (!privateKeyProvider) {
|
|
129
129
|
throw WalletInitializationError.invalidParams("privateKeyProvider is required");
|
|
130
130
|
}
|
|
@@ -178,7 +178,7 @@ class Web3Auth extends Web3AuthNoModal {
|
|
|
178
178
|
// and chainNamespace.
|
|
179
179
|
if (!adapter.chainConfigProxy) {
|
|
180
180
|
var _this$coreOptions$cha2;
|
|
181
|
-
const chainConfig = _objectSpread(_objectSpread({}, getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha2 = this.coreOptions.chainConfig) === null || _this$coreOptions$cha2 === void 0 ? void 0 : _this$coreOptions$cha2.chainId)), this.coreOptions.chainConfig);
|
|
181
|
+
const chainConfig = _objectSpread(_objectSpread({}, getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha2 = this.coreOptions.chainConfig) === null || _this$coreOptions$cha2 === void 0 ? void 0 : _this$coreOptions$cha2.chainId, this.coreOptions.clientId)), this.coreOptions.chainConfig);
|
|
182
182
|
this.walletAdapters[adapterName].setAdapterSettings({
|
|
183
183
|
chainConfig
|
|
184
184
|
});
|
package/dist/modal.cjs.js
CHANGED
|
@@ -257,7 +257,7 @@ class Web3Auth extends no_modal_namespaceObject.Web3AuthNoModal {
|
|
|
257
257
|
sessionTime,
|
|
258
258
|
privateKeyProvider
|
|
259
259
|
} = this.coreOptions;
|
|
260
|
-
const finalChainConfig = objectSpread2_default()(objectSpread2_default()({}, (0,base_.getChainConfig)(providedChainConfig.chainNamespace, (_this$coreOptions$cha = this.coreOptions.chainConfig) === null || _this$coreOptions$cha === void 0 ? void 0 : _this$coreOptions$cha.chainId)), chainConfig);
|
|
260
|
+
const finalChainConfig = objectSpread2_default()(objectSpread2_default()({}, (0,base_.getChainConfig)(providedChainConfig.chainNamespace, (_this$coreOptions$cha = this.coreOptions.chainConfig) === null || _this$coreOptions$cha === void 0 ? void 0 : _this$coreOptions$cha.chainId, clientId)), chainConfig);
|
|
261
261
|
if (!privateKeyProvider) {
|
|
262
262
|
throw base_.WalletInitializationError.invalidParams("privateKeyProvider is required");
|
|
263
263
|
}
|
|
@@ -311,7 +311,7 @@ class Web3Auth extends no_modal_namespaceObject.Web3AuthNoModal {
|
|
|
311
311
|
// and chainNamespace.
|
|
312
312
|
if (!adapter.chainConfigProxy) {
|
|
313
313
|
var _this$coreOptions$cha2;
|
|
314
|
-
const chainConfig = objectSpread2_default()(objectSpread2_default()({}, (0,base_.getChainConfig)(providedChainConfig.chainNamespace, (_this$coreOptions$cha2 = this.coreOptions.chainConfig) === null || _this$coreOptions$cha2 === void 0 ? void 0 : _this$coreOptions$cha2.chainId)), this.coreOptions.chainConfig);
|
|
314
|
+
const chainConfig = objectSpread2_default()(objectSpread2_default()({}, (0,base_.getChainConfig)(providedChainConfig.chainNamespace, (_this$coreOptions$cha2 = this.coreOptions.chainConfig) === null || _this$coreOptions$cha2 === void 0 ? void 0 : _this$coreOptions$cha2.chainId, this.coreOptions.clientId)), this.coreOptions.chainConfig);
|
|
315
315
|
this.walletAdapters[adapterName].setAdapterSettings({
|
|
316
316
|
chainConfig
|
|
317
317
|
});
|
package/dist/modal.esm.js
CHANGED
|
@@ -198,7 +198,7 @@ class Web3Auth extends Web3AuthNoModal {
|
|
|
198
198
|
sessionTime,
|
|
199
199
|
privateKeyProvider
|
|
200
200
|
} = this.coreOptions;
|
|
201
|
-
const finalChainConfig = _objectSpread(_objectSpread({}, getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha = this.coreOptions.chainConfig) === null || _this$coreOptions$cha === void 0 ? void 0 : _this$coreOptions$cha.chainId)), chainConfig);
|
|
201
|
+
const finalChainConfig = _objectSpread(_objectSpread({}, getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha = this.coreOptions.chainConfig) === null || _this$coreOptions$cha === void 0 ? void 0 : _this$coreOptions$cha.chainId, clientId)), chainConfig);
|
|
202
202
|
if (!privateKeyProvider) {
|
|
203
203
|
throw WalletInitializationError.invalidParams("privateKeyProvider is required");
|
|
204
204
|
}
|
|
@@ -252,7 +252,7 @@ class Web3Auth extends Web3AuthNoModal {
|
|
|
252
252
|
// and chainNamespace.
|
|
253
253
|
if (!adapter.chainConfigProxy) {
|
|
254
254
|
var _this$coreOptions$cha2;
|
|
255
|
-
const chainConfig = _objectSpread(_objectSpread({}, getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha2 = this.coreOptions.chainConfig) === null || _this$coreOptions$cha2 === void 0 ? void 0 : _this$coreOptions$cha2.chainId)), this.coreOptions.chainConfig);
|
|
255
|
+
const chainConfig = _objectSpread(_objectSpread({}, getChainConfig(providedChainConfig.chainNamespace, (_this$coreOptions$cha2 = this.coreOptions.chainConfig) === null || _this$coreOptions$cha2 === void 0 ? void 0 : _this$coreOptions$cha2.chainId, this.coreOptions.clientId)), this.coreOptions.chainConfig);
|
|
256
256
|
this.walletAdapters[adapterName].setAdapterSettings({
|
|
257
257
|
chainConfig
|
|
258
258
|
});
|