@keplr-wallet/cosmos
Advanced tools
Comparing version 0.8.13 to 0.8.15-rc.0
@@ -37,7 +37,4 @@ "use strict"; | ||
} | ||
const type = obj.type; | ||
if (!type) { | ||
throw new Error(`Account's type is unknown: ${JSON.stringify(obj)}`); | ||
} | ||
let value = obj.value; | ||
const type = obj.type || ""; | ||
let value = "value" in obj ? obj.value : obj; | ||
// If the account is the vesting account that embeds the base vesting account, | ||
@@ -44,0 +41,0 @@ // the actual base account exists under the base vesting account. |
{ | ||
"name": "@keplr-wallet/cosmos", | ||
"version": "0.8.13", | ||
"version": "0.8.15-rc.0", | ||
"main": "build/index.js", | ||
@@ -33,3 +33,3 @@ "author": "chainapsis", | ||
}, | ||
"gitHead": "f5abfcdbf09bdcca1f300640b28ee179c521849b" | ||
"gitHead": "429902cfeecf0610743934416f77a519d6346b91" | ||
} |
@@ -45,8 +45,5 @@ import { Int } from "@keplr-wallet/unit"; | ||
const type = obj.type; | ||
if (!type) { | ||
throw new Error(`Account's type is unknown: ${JSON.stringify(obj)}`); | ||
} | ||
const type = obj.type || ""; | ||
let value = obj.value; | ||
let value = "value" in obj ? obj.value : obj; | ||
@@ -53,0 +50,0 @@ // If the account is the vesting account that embeds the base vesting account, |
Sorry, the diff of this file is not supported yet
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
3429909
87936