Skip to content

Commit

Permalink
Merge pull request #69 from MickWang/master
Browse files Browse the repository at this point in the history
update readme;fix test;
  • Loading branch information
MickWang authored Jul 5, 2018
2 parents 93f3ca9 + cc4730f commit 4e28493
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ npm install 'ontology-ts-sdk'
Get into the 'ontology-ts-sdk' directory and run:

````
npm run build
npm run build:dev // or npm run build:prod
````

You will get the packaged code under '/lib'
Expand All @@ -45,14 +45,15 @@ npm run test
Modules library export by 'Ont'

```
import {Wallet} from 'Ont'
import {Wallet} from 'ontology-ts-sdk';
var wallet = Wallet.create('test');
```

#### Require

````
var Ont = require 'Ont'
var wallet = Ont.Wallet()
var Ont = require('ontology-ts-sdk');
var wallet = Ont.Wallet.create('test');
````

#### Web require
Expand Down
3 changes: 1 addition & 2 deletions test/bip44.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ const HDKey = require('@ont-community/hdkey-secp256r1');
describe('test bip44', () => {
test('test_24', () => {
// tslint:disable-next-line:max-line-length
// const mnemonic = 'hill ready family useful detect bacon visit canoe recall circle topple claw sheriff universe robust lounge cluster duty vast excuse weasel grunt junk actor';
const mnemonic = 'oval volcano cram scout island web credit park tank improve ski rival';
const mnemonic = 'hill ready family useful detect bacon visit canoe recall circle topple claw sheriff universe robust lounge cluster duty vast excuse weasel grunt junk actor';

const seed = bip39.mnemonicToSeedHex(mnemonic);
console.log('seed:', seed);
Expand Down

0 comments on commit 4e28493

Please sign in to comment.