aboutsummaryrefslogtreecommitdiffstats
path: root/test/0x.js_test.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-15 23:59:13 +0800
committerGitHub <noreply@github.com>2017-06-15 23:59:13 +0800
commitf2d08ce3d99eb6c399b8328615e3d24be63115b6 (patch)
tree106a10732e18abbfc9139b31b8627dbef96b7283 /test/0x.js_test.ts
parent76d6e6a7481a69c1c0100a90f30d5d28ec471e84 (diff)
parent5932ebb52a4421ab56c9b855f29bc26349e2ebd0 (diff)
downloaddexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.gz
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.bz2
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.lz
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.xz
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.tar.zst
dexon-sol-tools-f2d08ce3d99eb6c399b8328615e3d24be63115b6.zip
Merge branch 'master' into event-types
Diffstat (limited to 'test/0x.js_test.ts')
-rw-r--r--test/0x.js_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts
index 58f5c8533..9ec0a0c8e 100644
--- a/test/0x.js_test.ts
+++ b/test/0x.js_test.ts
@@ -15,7 +15,7 @@ describe('ZeroEx library', () => {
describe('#setProvider', () => {
it('overrides provider in nested web3s and invalidates contractInstances', async () => {
const web3 = web3Factory.create();
- const zeroEx = new ZeroEx(web3);
+ const zeroEx = new ZeroEx(web3.currentProvider);
// Instantiate the contract instances with the current provider
await (zeroEx.exchange as any)._getExchangeContractAsync();
await (zeroEx.tokenRegistry as any)._getTokenRegistryContractAsync();
@@ -51,7 +51,7 @@ describe('ZeroEx library', () => {
};
const address = '0x5409ed021d9299bf6814279a6a1411a7e866a631';
const web3 = web3Factory.create();
- const zeroEx = new ZeroEx(web3);
+ const zeroEx = new ZeroEx(web3.currentProvider);
it('should return false if the data doesn\'t pertain to the signature & address', async () => {
expect(ZeroEx.isValidSignature('0x0', signature, address)).to.be.false();
return expect(
@@ -149,7 +149,7 @@ describe('ZeroEx library', () => {
});
it('calculates the order hash', async () => {
const web3 = web3Factory.create();
- const zeroEx = new ZeroEx(web3);
+ const zeroEx = new ZeroEx(web3.currentProvider);
stubs = [
Sinon.stub((zeroEx as any), '_getExchangeAddressAsync')
@@ -164,7 +164,7 @@ describe('ZeroEx library', () => {
let stubs: Sinon.SinonStub[] = [];
let makerAddress: string;
const web3 = web3Factory.create();
- const zeroEx = new ZeroEx(web3);
+ const zeroEx = new ZeroEx(web3.currentProvider);
before(async () => {
const availableAddreses = await zeroEx.getAvailableAddressesAsync();
makerAddress = availableAddreses[0];