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

Commit

Permalink
Merge pull request #21 from cosmostation/develop
Browse files Browse the repository at this point in the history
Support for kava-2
  • Loading branch information
Booyoun authored Nov 15, 2019
2 parents d239b4e + 44906e2 commit 7a50f52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ iris.setBech32MainPrefix("iaa");
```js
const cosmosjs = require("@cosmostation/cosmosjs");

const chainId = "kava-testnet-3000";
const chainId = "kava-2";
const kava = cosmosjs.network(lcdUrl, chainId);
kava.setBech32MainPrefix("kava");
```
Expand Down
6 changes: 3 additions & 3 deletions example/kava.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const cosmosjs = require("../src");

// [WARNING] This mnemonic is just for the demo purpose. DO NOT USE THIS MNEMONIC for your own wallet.
const mnemonic = "swear buyer security impulse public stereo peasant correct cross tornado bid discover anchor float venture deal patch property cool wreck eight dwarf december surface";
const chainId = "kava-testnet-3000";
const chainId = "kava-2";
const kava = cosmosjs.network("https://lcd-kava.cosmostation.io", chainId);
kava.setBech32MainPrefix("kava");
kava.setPath("m/44'/118'/0'/0/0");
Expand All @@ -21,8 +21,8 @@ kava.getAccounts(address).then(data => {
fee: 5000,
gas: 200000,
memo: "",
account_number: data.value.account_number,
sequence: data.value.sequence
account_number: data.result.value.account_number,
sequence: data.result.value.sequence
});

const signedTx = kava.sign(stdSignMsg, ecpairPriv);
Expand Down
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.4.1",
"version": "0.4.2",
"description": "A JavasSript Open Source Library for Cosmos Network, IRISnet and Kava",
"main": "./src/index.js",
"engines": {
Expand Down

0 comments on commit 7a50f52

Please sign in to comment.