@portal-hq/web 0.0.5 → 0.0.6
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/lib/commonjs/index.js +1 -1
- package/lib/commonjs/mpc/index.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/mpc/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/mpc/index.ts +1 -1
package/lib/commonjs/index.js
CHANGED
|
@@ -283,7 +283,7 @@ class Portal {
|
|
|
283
283
|
}
|
|
284
284
|
else if (typeof this.gatewayConfig === 'object' &&
|
|
285
285
|
// eslint-disable-next-line no-prototype-builtins
|
|
286
|
-
this.gatewayConfig.hasOwnProperty(this.chainId)) {
|
|
286
|
+
!this.gatewayConfig.hasOwnProperty(this.chainId)) {
|
|
287
287
|
// If there's no explicit mapping for the current chainId, error out
|
|
288
288
|
throw new Error(`[PortalProvider] No RPC endpoint configured for chainId: ${this.chainId}`);
|
|
289
289
|
}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.MpcErrorCodes = exports.MpcError = void 0;
|
|
13
13
|
const errors_1 = require("./errors");
|
|
14
14
|
const index_1 = require("../index");
|
|
15
|
-
const WEB_SDK_VERSION = '0.0.
|
|
15
|
+
const WEB_SDK_VERSION = '0.0.6';
|
|
16
16
|
class Mpc {
|
|
17
17
|
constructor({ portal }) {
|
|
18
18
|
this.configureIframe = () => {
|
package/lib/esm/index.js
CHANGED
|
@@ -277,7 +277,7 @@ class Portal {
|
|
|
277
277
|
}
|
|
278
278
|
else if (typeof this.gatewayConfig === 'object' &&
|
|
279
279
|
// eslint-disable-next-line no-prototype-builtins
|
|
280
|
-
this.gatewayConfig.hasOwnProperty(this.chainId)) {
|
|
280
|
+
!this.gatewayConfig.hasOwnProperty(this.chainId)) {
|
|
281
281
|
// If there's no explicit mapping for the current chainId, error out
|
|
282
282
|
throw new Error(`[PortalProvider] No RPC endpoint configured for chainId: ${this.chainId}`);
|
|
283
283
|
}
|
package/lib/esm/mpc/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { PortalMpcError } from './errors';
|
|
11
11
|
import { BackupMethods } from '../index';
|
|
12
|
-
const WEB_SDK_VERSION = '0.0.
|
|
12
|
+
const WEB_SDK_VERSION = '0.0.6';
|
|
13
13
|
class Mpc {
|
|
14
14
|
constructor({ portal }) {
|
|
15
15
|
this.configureIframe = () => {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -353,7 +353,7 @@ class Portal {
|
|
|
353
353
|
} else if (
|
|
354
354
|
typeof this.gatewayConfig === 'object' &&
|
|
355
355
|
// eslint-disable-next-line no-prototype-builtins
|
|
356
|
-
this.gatewayConfig.hasOwnProperty(this.chainId)
|
|
356
|
+
!this.gatewayConfig.hasOwnProperty(this.chainId)
|
|
357
357
|
) {
|
|
358
358
|
// If there's no explicit mapping for the current chainId, error out
|
|
359
359
|
throw new Error(
|