aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-09-26 21:29:44 +0800
committerFabio Berger <me@fabioberger.com>2017-09-26 21:29:44 +0800
commitdeac665b42739cf13db58c73fbf8e3f6624c34aa (patch)
tree860aac68a0ee3dd427d131545f2443b9799bfad9 /test
parentfbac611337593b9bf03552637e709c45bdeee4ed (diff)
parent3c40526bffcccbad2a64f92f69f3b6ec63946c88 (diff)
downloaddexon-sol-tools-deac665b42739cf13db58c73fbf8e3f6624c34aa.tar
dexon-sol-tools-deac665b42739cf13db58c73fbf8e3f6624c34aa.tar.gz
dexon-sol-tools-deac665b42739cf13db58c73fbf8e3f6624c34aa.tar.bz2
dexon-sol-tools-deac665b42739cf13db58c73fbf8e3f6624c34aa.tar.lz
dexon-sol-tools-deac665b42739cf13db58c73fbf8e3f6624c34aa.tar.xz
dexon-sol-tools-deac665b42739cf13db58c73fbf8e3f6624c34aa.tar.zst
dexon-sol-tools-deac665b42739cf13db58c73fbf8e3f6624c34aa.zip
Merge branch 'development' into addOrderValidation
* development: Update comment Add a test for getZRXTokenAddressAsync Document changes in CHANGELOG Make getZRXTokenAddressAsync public
Diffstat (limited to 'test')
-rw-r--r--test/exchange_wrapper_test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index f72e7f64f..9c0617671 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -591,4 +591,11 @@ describe('ExchangeWrapper', () => {
expect(orderHash).to.equal(orderHashFromContract);
});
});
+ describe('#getZRXTokenAddressAsync', () => {
+ it('gets the same token as is in token registry', async () => {
+ const zrxAddress = await zeroEx.exchange.getZRXTokenAddressAsync();
+ const zrxToken = tokenUtils.getProtocolTokenOrThrow();
+ expect(zrxAddress).to.equal(zrxToken.address);
+ });
+ });
});