wallaby-cash 1.7.12 → 1.7.13
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/dist/index.cjs.js +3 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/types/wallet.d.ts +2 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10168,7 +10168,7 @@ var Wallet = /** @class */ (function (_super) {
|
|
|
10168
10168
|
*/
|
|
10169
10169
|
Wallet.prototype.addTokenToWallet = function (_a) {
|
|
10170
10170
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
10171
|
-
var
|
|
10171
|
+
var response, error_16;
|
|
10172
10172
|
var assetConfigId = _b.assetConfigId, walletId = _b.walletId, userId = _b.userId, config = _b.config;
|
|
10173
10173
|
return __generator(this, function (_c) {
|
|
10174
10174
|
switch (_c.label) {
|
|
@@ -10180,12 +10180,11 @@ var Wallet = /** @class */ (function (_super) {
|
|
|
10180
10180
|
if (!assetConfigId && !config) {
|
|
10181
10181
|
throw new Error('Either assetConfigId or config must be provided');
|
|
10182
10182
|
}
|
|
10183
|
-
contractAddress = config === null || config === void 0 ? void 0 : config.contractAddress;
|
|
10184
10183
|
if ((config === null || config === void 0 ? void 0 : config.chainName) === exports.BlockchainName.Sui) {
|
|
10185
10184
|
if (!config.suiObjectId || !!config.contractAddress) {
|
|
10186
10185
|
throw new Error('`suiObjectId` instead of `contractAddress` is required for Sui chain');
|
|
10187
10186
|
}
|
|
10188
|
-
|
|
10187
|
+
config.suiObjectId = sanitizeSuiObjectId(config.suiObjectId);
|
|
10189
10188
|
}
|
|
10190
10189
|
return [4 /*yield*/, this.request(WalletRoutes.addTokenToWallet, {
|
|
10191
10190
|
method: WalletRoutes.addTokenToWallet.method,
|
|
@@ -10193,7 +10192,7 @@ var Wallet = /** @class */ (function (_super) {
|
|
|
10193
10192
|
assetConfigId: assetConfigId,
|
|
10194
10193
|
walletId: walletId,
|
|
10195
10194
|
userId: userId,
|
|
10196
|
-
config:
|
|
10195
|
+
config: config,
|
|
10197
10196
|
},
|
|
10198
10197
|
})];
|
|
10199
10198
|
case 1:
|