aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-utils/src/rpc.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-01-31 03:27:14 +0800
committerGitHub <noreply@github.com>2018-01-31 03:27:14 +0800
commit2bcb7d56394c43acd68d1823092de2ad047abc6d (patch)
tree55684889214373fcd66ca52efa079f381cfb388b /packages/dev-utils/src/rpc.ts
parentd004df56e38726ed7f1b775da33d8f37aae270db (diff)
parent7ad314472d27e8a6c6ee8242f4f335d414709f4d (diff)
downloaddexon-sol-tools-2bcb7d56394c43acd68d1823092de2ad047abc6d.tar
dexon-sol-tools-2bcb7d56394c43acd68d1823092de2ad047abc6d.tar.gz
dexon-sol-tools-2bcb7d56394c43acd68d1823092de2ad047abc6d.tar.bz2
dexon-sol-tools-2bcb7d56394c43acd68d1823092de2ad047abc6d.tar.lz
dexon-sol-tools-2bcb7d56394c43acd68d1823092de2ad047abc6d.tar.xz
dexon-sol-tools-2bcb7d56394c43acd68d1823092de2ad047abc6d.tar.zst
dexon-sol-tools-2bcb7d56394c43acd68d1823092de2ad047abc6d.zip
Merge pull request #332 from 0xProject/feature/contracts-abi-gen
Contracts refactor. Bye, truffle!!! :clap:
Diffstat (limited to 'packages/dev-utils/src/rpc.ts')
-rw-r--r--packages/dev-utils/src/rpc.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/dev-utils/src/rpc.ts b/packages/dev-utils/src/rpc.ts
index 36f8b1ef9..47a359263 100644
--- a/packages/dev-utils/src/rpc.ts
+++ b/packages/dev-utils/src/rpc.ts
@@ -1,11 +1,13 @@
import * as ethUtil from 'ethereumjs-util';
import * as request from 'request-promise-native';
+import { constants } from './constants';
+
export class RPC {
private _url: string;
private _id: number;
- constructor(url: string) {
- this._url = url;
+ constructor() {
+ this._url = constants.RPC_URL;
this._id = 0;
}
public async takeSnapshotAsync(): Promise<number> {