@keplr-wallet/background
Advanced tools
Comparing version 0.8.15-rc.0 to 0.8.15
@@ -78,6 +78,6 @@ "use strict"; | ||
}); | ||
// Get the latest block. | ||
const result = yield instance.get("/block"); | ||
// Get the status to get the chain id. | ||
const result = yield instance.get("/status"); | ||
const currentVersion = cosmos_1.ChainIdHelper.parse(chainInfo.chainId); | ||
const fetchedChainId = result.data.result.block.header.chain_id; | ||
const fetchedChainId = result.data.result.node_info.network; | ||
const fetchedVersion = cosmos_1.ChainIdHelper.parse(fetchedChainId); | ||
@@ -173,5 +173,5 @@ if (currentVersion.identifier === fetchedVersion.identifier && | ||
}); | ||
// Get the latest block. | ||
const result = yield instance.get("/block"); | ||
const resultChainId = result.data.result.block.header.chain_id; | ||
// Get the status to get the chain id. | ||
const result = yield instance.get("/status"); | ||
const resultChainId = result.data.result.node_info.network; | ||
const version = cosmos_1.ChainIdHelper.parse(chainId); | ||
@@ -178,0 +178,0 @@ const fetchedVersion = cosmos_1.ChainIdHelper.parse(resultChainId); |
{ | ||
"name": "@keplr-wallet/background", | ||
"version": "0.8.15-rc.0", | ||
"version": "0.8.15", | ||
"main": "build/index.js", | ||
@@ -29,4 +29,4 @@ "author": "chainapsis", | ||
"@keplr-wallet/common": "^0.8.8", | ||
"@keplr-wallet/cosmos": "^0.8.15-rc.0", | ||
"@keplr-wallet/crypto": "^0.8.15-rc.0", | ||
"@keplr-wallet/cosmos": "^0.8.15", | ||
"@keplr-wallet/crypto": "^0.8.15", | ||
"@keplr-wallet/popup": "^0.8.8", | ||
@@ -53,3 +53,3 @@ "@keplr-wallet/router": "^0.8.8", | ||
}, | ||
"gitHead": "429902cfeecf0610743934416f77a519d6346b91" | ||
"gitHead": "e48b88c43f04330e7a1b2df3cf3fd7ad039afacf" | ||
} |
@@ -70,15 +70,13 @@ import { inject, singleton, delay } from "tsyringe"; | ||
// Get the latest block. | ||
// Get the status to get the chain id. | ||
const result = await instance.get<{ | ||
result: { | ||
block: { | ||
header: { | ||
chain_id: string; | ||
}; | ||
node_info: { | ||
network: "osmosis-1"; | ||
}; | ||
}; | ||
}>("/block"); | ||
}>("/status"); | ||
const currentVersion = ChainIdHelper.parse(chainInfo.chainId); | ||
const fetchedChainId = result.data.result.block.header.chain_id; | ||
const fetchedChainId = result.data.result.node_info.network; | ||
const fetchedVersion = ChainIdHelper.parse(fetchedChainId); | ||
@@ -211,14 +209,12 @@ | ||
// Get the latest block. | ||
// Get the status to get the chain id. | ||
const result = await instance.get<{ | ||
result: { | ||
block: { | ||
header: { | ||
chain_id: string; | ||
}; | ||
node_info: { | ||
network: "osmosis-1"; | ||
}; | ||
}; | ||
}>("/block"); | ||
}>("/status"); | ||
const resultChainId = result.data.result.block.header.chain_id; | ||
const resultChainId = result.data.result.node_info.network; | ||
@@ -225,0 +221,0 @@ const version = ChainIdHelper.parse(chainId); |
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
640499
362
12844
Updated@keplr-wallet/cosmos@^0.8.15
Updated@keplr-wallet/crypto@^0.8.15