@keplr-wallet/cosmos
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -39,2 +39,8 @@ "use strict"; | ||
let value = "value" in obj ? obj.value : obj; | ||
// If the chain modifies the account type, handle the case where the account type embeds the base account. | ||
// (Actually, the only existent case is ethermint, and this is the line for handling ethermint) | ||
const baseAccount = value.BaseAccount || value.baseAccount || value.base_account; | ||
if (baseAccount) { | ||
value = baseAccount; | ||
} | ||
// If the account is the vesting account that embeds the base vesting account, | ||
@@ -41,0 +47,0 @@ // the actual base account exists under the base vesting account. |
{ | ||
"name": "@keplr-wallet/cosmos", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"main": "build/index.js", | ||
@@ -13,4 +13,5 @@ "author": "chainapsis", | ||
"clean": "rm -rf node_modules; rm -rf build", | ||
"build": "tsc; mkdir -p build/stargate/proto/generated && cp ./src/stargate/proto/generated/* ./build/stargate/proto/generated", | ||
"dev": "tsc -w", | ||
"build": "yarn build:proto && tsc", | ||
"build:proto": "mkdir -p build/stargate/proto/generated && cp ./src/stargate/proto/generated/* ./build/stargate/proto/generated", | ||
"dev": "yarn build:proto && tsc -w", | ||
"test": "jest --passWithNoTests", | ||
@@ -30,3 +31,3 @@ "lint-test": "eslint \"src/**/*\" && prettier --check \"src/**/*\"", | ||
}, | ||
"gitHead": "e78b5b9d3a30e42a28cace30ed4b97a14bc92803" | ||
"gitHead": "5295e9b866f01459b7809b54b6cf9c146b115721" | ||
} |
@@ -49,2 +49,10 @@ import { Int } from "@keplr-wallet/unit"; | ||
// If the chain modifies the account type, handle the case where the account type embeds the base account. | ||
// (Actually, the only existent case is ethermint, and this is the line for handling ethermint) | ||
const baseAccount = | ||
value.BaseAccount || value.baseAccount || value.base_account; | ||
if (baseAccount) { | ||
value = baseAccount; | ||
} | ||
// If the account is the vesting account that embeds the base vesting account, | ||
@@ -51,0 +59,0 @@ // the actual base account exists under 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
1007159
66
18971