@coinbase/wallet-sdk
Advanced tools
Comparing version 4.0.0-beta.0 to 4.0.0-beta.1
@@ -19,2 +19,3 @@ "use strict"; | ||
this.stateManager = new SCWStateManager_1.SCWStateManager({ | ||
appChainIds: this.appChainIds, | ||
updateListener: { | ||
@@ -21,0 +22,0 @@ onAccountsUpdate: (...args) => options.updateListener.onAccountsUpdate(this, ...args), |
@@ -12,2 +12,3 @@ import { StateUpdateListener } from '../UpdateListenerInterface'; | ||
constructor(options: { | ||
appChainIds: number[]; | ||
updateListener: StateUpdateListener; | ||
@@ -14,0 +15,0 @@ }); |
@@ -16,2 +16,3 @@ "use strict"; | ||
constructor(options) { | ||
var _a, _b; | ||
this.storage = new ScopedLocalStorage_1.ScopedLocalStorage('CBWSDK', 'SCWStateManager'); | ||
@@ -35,3 +36,3 @@ this.updateListener = options.updateListener; | ||
this._accounts = accounts || []; | ||
this._activeChain = chain || { id: 1 }; | ||
this._activeChain = chain || { id: (_b = (_a = options.appChainIds) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : 1 }; | ||
} | ||
@@ -38,0 +39,0 @@ updateAccounts(accounts) { |
@@ -1,1 +0,1 @@ | ||
export declare const LIB_VERSION = "4.0.0-beta.0"; | ||
export declare const LIB_VERSION = "4.0.0-beta.1"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LIB_VERSION = void 0; | ||
exports.LIB_VERSION = '4.0.0-beta.0'; | ||
exports.LIB_VERSION = '4.0.0-beta.1'; |
{ | ||
"name": "@coinbase/wallet-sdk", | ||
"version": "4.0.0-beta.0", | ||
"version": "4.0.0-beta.1", | ||
"description": "Coinbase Wallet JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
299235
7129
2