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

Commit

Permalink
fixed version
Browse files Browse the repository at this point in the history
  • Loading branch information
Booyoun-Kim committed Feb 18, 2021
1 parent c80f0a9 commit ce9c771
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ yarn add @cosmostation/cosmosjs
```

### Warning
- If you use a version under 0.8.2, it will be deprecated. You need to test 0.9.0+ for protobuf signing. You can download it from the branch of `protobuf-test`.
- If you use a version under 0.9.x, it will be deprecated. You can download protobuf version from the branch of `protobuf-test`.

## Import

Expand Down Expand Up @@ -67,7 +67,7 @@ import cosmosjs from "@cosmostation/cosmosjs";
```js
const cosmosjs = require("@cosmostation/cosmosjs");

const chainId = "cosmoshub-3";
const chainId = "cosmoshub-4";
const cosmos = cosmosjs.network(lcdUrl, chainId);

const mnemonic = "..."
Expand Down Expand Up @@ -161,8 +161,8 @@ cosmos.getAccounts(address).then(data => {
chain_id: chainId,
fee: { amount: [ { amount: String(5000), denom: "uatom" } ], gas: String(200000) },
memo: "",
account_number: String(data.result.value.account_number),
sequence: String(data.result.value.sequence)
account_number: String(data.account.account_number),
sequence: String(data.account.sequence)
});

...
Expand Down

0 comments on commit ce9c771

Please sign in to comment.