chore(README): update README

dev
neeboo 5 years ago
parent 85424403c2
commit 95fcafb77b
  1. 12
      README.md
  2. 1
      e2e/src/blockchain.e2e.ts

@ -57,4 +57,16 @@ yarn add tslib
* [harmony-sdk-examples](https://github.com/FireStack-Lab/harmony-sdk-examples)
# E2E tests
**Contantly updating now, please get back later**
1. edit `.env` file if you have custom setting
2. run harmony node locally(this fork currently : https://github.com/mikedoan/harmony/tree/enable_tx)
3. wait for 1-2 mins, and run this:
```bash
yarn test:e2e
```

@ -44,6 +44,7 @@ describe('e2e test blockchain', () => {
expect(checkBlockData(res3.result)).toEqual(true);
expect(typeof res3.result.timestamp).toEqual('number');
});
it('should test hmy_getBlockByHash', async () => {
const latestBlock = await bc.getBlockByNumber({ blockNumber: 'latest' });
const res = await bc.getBlockByHash({ blockHash: latestBlock.result.hash });

Loading…
Cancel
Save