@openocean.finance/wallet 0.4.61 → 0.4.62
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.
|
@@ -97,11 +97,12 @@ var MeteorWallet = /** @class */ (function (_super) {
|
|
|
97
97
|
meteorWallet = (0, meteor_wallet_1.setupMeteorWallet)();
|
|
98
98
|
return [4 /*yield*/, (0, core_1.setupWalletSelector)({
|
|
99
99
|
network: "mainnet",
|
|
100
|
+
debug: true,
|
|
100
101
|
modules: [meteorWallet],
|
|
101
102
|
})];
|
|
102
103
|
case 1:
|
|
103
104
|
selector = _a.sent();
|
|
104
|
-
return [4 /*yield*/, selector.wallet()];
|
|
105
|
+
return [4 /*yield*/, selector.wallet('meteor-wallet')];
|
|
105
106
|
case 2:
|
|
106
107
|
wallet = _a.sent();
|
|
107
108
|
return [4 /*yield*/, wallet.signIn({
|
|
@@ -111,7 +112,7 @@ var MeteorWallet = /** @class */ (function (_super) {
|
|
|
111
112
|
case 3:
|
|
112
113
|
accounts = _a.sent();
|
|
113
114
|
this.sdk = wallet;
|
|
114
|
-
this.address = accounts;
|
|
115
|
+
this.address = accounts && accounts[0] && accounts[0].accountId || "";
|
|
115
116
|
return [2 /*return*/, this.address || ""];
|
|
116
117
|
}
|
|
117
118
|
});
|
|
@@ -97,11 +97,12 @@ var SenderWallet = /** @class */ (function (_super) {
|
|
|
97
97
|
sender = (0, sender_1.setupSender)();
|
|
98
98
|
return [4 /*yield*/, (0, core_1.setupWalletSelector)({
|
|
99
99
|
network: "mainnet",
|
|
100
|
+
debug: true,
|
|
100
101
|
modules: [sender],
|
|
101
102
|
})];
|
|
102
103
|
case 1:
|
|
103
104
|
selector = _a.sent();
|
|
104
|
-
return [4 /*yield*/, selector.wallet()];
|
|
105
|
+
return [4 /*yield*/, selector.wallet("sender")];
|
|
105
106
|
case 2:
|
|
106
107
|
wallet = _a.sent();
|
|
107
108
|
return [4 /*yield*/, wallet.signIn({
|
|
@@ -111,7 +112,7 @@ var SenderWallet = /** @class */ (function (_super) {
|
|
|
111
112
|
case 3:
|
|
112
113
|
accounts = _a.sent();
|
|
113
114
|
this.sdk = wallet;
|
|
114
|
-
this.address = accounts;
|
|
115
|
+
this.address = accounts && accounts[0] && accounts[0].accountId || "";
|
|
115
116
|
return [2 /*return*/, this.address || ""];
|
|
116
117
|
}
|
|
117
118
|
});
|