Skip to content

Commit a790497

Browse files
author
Jaco Greeff
committed
Merge pull request #32 from jacogr/jg-transport
transport naming
2 parents 6908e47 + 7ceb74d commit a790497

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Install the package with `npm install --save ethapi-js` from the [npm registry e
2828
import EthApi from 'ethapi-js';
2929

3030
// do the setup
31-
const transport = new EthApi.Transports.Http('127.0.0.1', 8545);
31+
const transport = new EthApi.Transport.Http('127.0.0.1', 8545);
3232
const ethapi = new EthApi(transport);
3333
```
3434

lib/contract/contract.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import EthApi from '../ethApi';
88
import Contract from './contract';
99
import { isInstanceOf, isFunction } from '../util/types';
1010

11-
const transport = new EthApi.Transports.Http(TEST_HOST, TEST_PORT);
11+
const transport = new EthApi.Transport.Http(TEST_HOST, TEST_PORT);
1212
const eth = new EthApi(transport);
1313

1414
describe('contract/Contract', () => {

lib/ethApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class EthApi {
5454

5555
static Contract = Contract
5656

57-
static Transports = {
57+
static Transport = {
5858
Http: Http
5959
}
6060
}

lib/ethApi.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('lib/EthApi', () => {
1818
});
1919

2020
describe('interface', () => {
21-
const api = new EthApi(new EthApi.Transports.Http(TEST_HOST, TEST_PORT));
21+
const api = new EthApi(new EthApi.Transport.Http(TEST_HOST, TEST_PORT));
2222

2323
const endpoints = {};
2424
ethereumRpc.methods.sort().forEach((entry) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethapi-js",
3-
"version": "0.0.39",
3+
"version": "0.1.0",
44
"main": "index.js",
55
"jsnext:main": "lib/index.js",
66
"author": "Jaco Greeff <jacogr@gmail.com>",

test/e2e/ethapi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import EthApi from '../../lib';
22

3-
const transport = new EthApi.Transports.Http('127.0.0.1', 8545);
3+
const transport = new EthApi.Transport.Http('127.0.0.1', 8545);
44
const ethapi = new EthApi(transport);
55

66
if (process.env.DEBUG) {

0 commit comments

Comments
 (0)