carbon-js-sdk 0.11.52 → 0.11.53
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.
|
@@ -15,9 +15,8 @@ export interface UserVault {
|
|
|
15
15
|
shareDenom: string;
|
|
16
16
|
/** auto-created address of the vault that stores the tokens */
|
|
17
17
|
vaultAddress: string;
|
|
18
|
-
/** defines the type of the pool
|
|
18
|
+
/** defines the type of the pool */
|
|
19
19
|
vaultType: Long;
|
|
20
|
-
/** optional fields for user vault */
|
|
21
20
|
owner: string;
|
|
22
21
|
description: string;
|
|
23
22
|
/** profit share to charge on a profitable trade to vault in decimal */
|
|
@@ -212,7 +212,9 @@ class CarbonWallet {
|
|
|
212
212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
213
|
const queryClient = this.getQueryClient();
|
|
214
214
|
const response = yield queryClient.evmmerge.MappedAddress({ address: this.bech32Address });
|
|
215
|
-
const evmBech32Address = response.mappedAddress;
|
|
215
|
+
const evmBech32Address = response === null || response === void 0 ? void 0 : response.mappedAddress;
|
|
216
|
+
if (!evmBech32Address)
|
|
217
|
+
return;
|
|
216
218
|
this.evmBech32Address = evmBech32Address;
|
|
217
219
|
const addressBytes = address_1.SWTHAddress.getAddressBytes(evmBech32Address, this.network);
|
|
218
220
|
if (addressBytes.length === 20) {
|