fix: Fixes #208. Uses correct HTTP or WS URL prefix and port (#209)

This commit is contained in:
Luke Schoen
2018-10-05 23:00:20 +02:00
committed by Jaco Greeff
parent 50d7fdccfd
commit ae54a71dc9
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ import isFunction from '@polkadot/util/is/function';
* import Api from '@polkadot/api';
* import WsProvider from '@polkadot/api-provider/ws';
*
* const provider = new WsProvider('http://127.0.0.1:9944');
* const provider = new WsProvider('ws://127.0.0.1:9944');
* const api = new Api(provider);
* ```
*/
@@ -61,7 +61,7 @@ export default class Api implements ApiInterface {
* <BR>
*
* ```javascript
* import Api from '@polkadot/Api';
* import Api from '@polkadot/api';
*
* Api.signature({ name: 'test_method', params: [ { name: 'dest', type: 'Address' } ], type: 'Address' }); // => test_method (dest: Address): Address
* ```