Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
added the account api for stargate-final chain-id
Browse files Browse the repository at this point in the history
  • Loading branch information
Booyoun-Kim committed Feb 20, 2021
1 parent 5643bb2 commit 6b53456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cosmostation/cosmosjs",
"version": "0.9.0",
"version": "0.9.2",
"description": "A JavasSript Open Source Library for Cosmos Network, IRISnet, Kava, Band Protocol, Starname, Secret Network, Akash, and Certik. (HTML developers can use /dist/cosmos.js)",
"main": "./src/index.js",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ Cosmos.prototype.getAccounts = function(address) {
let accountsApi = "";
if (this.chainId.indexOf("cosmos") != -1) {
accountsApi = "/cosmos/auth/v1beta1/accounts/";
} else if (this.chainId.indexOf("stargate-final") != -1) {
accountsApi = "/cosmos/auth/v1beta1/accounts/";
} else if (this.chainId.indexOf("irishub") != -1) {
accountsApi = "/bank/accounts/";
} else {
Expand Down

0 comments on commit 6b53456

Please sign in to comment.