@xlabs-libs/wallet-aggregator-cosmos
Advanced tools
Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.7
@@ -20,2 +20,3 @@ "use strict"; | ||
const DEFAULT_RESTS = {}; | ||
const DEFAULT_CHAIN_ID = "cosmoshub-4"; | ||
/** | ||
@@ -32,3 +33,3 @@ * A class to interact with Cosmos blockchains. | ||
this.accounts = []; | ||
this.chainId = chainId; | ||
this.chainId = chainId || DEFAULT_CHAIN_ID; | ||
this.rpcs = Object.assign({}, DEFAULT_RPCS, rpcs); | ||
@@ -35,0 +36,0 @@ this.rests = Object.assign({}, DEFAULT_RESTS, rests); |
@@ -8,2 +8,3 @@ import { SigningCosmWasmClient, } from "@cosmjs/cosmwasm-stargate"; | ||
const DEFAULT_RESTS = {}; | ||
const DEFAULT_CHAIN_ID = "cosmoshub-4"; | ||
/** | ||
@@ -20,3 +21,3 @@ * A class to interact with Cosmos blockchains. | ||
this.accounts = []; | ||
this.chainId = chainId; | ||
this.chainId = chainId || DEFAULT_CHAIN_ID; | ||
this.rpcs = Object.assign({}, DEFAULT_RPCS, rpcs); | ||
@@ -23,0 +24,0 @@ this.rests = Object.assign({}, DEFAULT_RESTS, rests); |
{ | ||
"name": "@xlabs-libs/wallet-aggregator-cosmos", | ||
"repository": "https://github.com/XLabs/wallet-aggregator-sdk/tree/master/packages/wallets/cosmos", | ||
"version": "0.0.1-alpha.6", | ||
"version": "0.0.1-alpha.7", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "dist/cjs/index.js", |
@@ -41,2 +41,3 @@ import { AccountData, StdSignature } from "@cosmjs/amino"; | ||
const DEFAULT_RESTS: ResourceMap = {}; | ||
const DEFAULT_CHAIN_ID = "cosmoshub-4"; | ||
@@ -70,3 +71,3 @@ /** | ||
super(); | ||
this.chainId = chainId; | ||
this.chainId = chainId || DEFAULT_CHAIN_ID; | ||
this.rpcs = Object.assign({}, DEFAULT_RPCS, rpcs); | ||
@@ -73,0 +74,0 @@ this.rests = Object.assign({}, DEFAULT_RESTS, rests); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126216
1498