Commit 6a9d355e authored by Matthew Vickery's avatar Matthew Vickery Committed by GitHub

Fixed typo in Usage instructions

Fixed typo in Usage instructions that caused an Uncaught Error: [ethjs-provider-http] the HttpProvider instance requires the "new" flag in order to function normally (e.g. `const eth = new Eth(new HttpProvider());`).
parent bd0f451e
......@@ -50,7 +50,7 @@ npm install --save ethjs-signer
```js
const HttpProvider = require('ethjs-provider-http');
const Eth = require('ethjs-query');
const eth = new Eth(HttpProvider('http://localhost:8545'));
const eth = new Eth(new HttpProvider('http://localhost:8545'));
const sign = require('ethjs-signer').sign;
const address = '0x0F6af8F8D7AAD198a7607C96fb74Ffa02C5eD86B';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment