aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-09-26 21:07:14 +0800
committerGitHub <noreply@github.com>2017-09-26 21:07:14 +0800
commit3c40526bffcccbad2a64f92f69f3b6ec63946c88 (patch)
tree21c7b4f3bec21a59dd61ea1bd1686b9c5862a297 /test
parent0a19a7e8d165a3df33e862d761492c9b4382ed24 (diff)
parent8a29f12a614f0024ee0e566a9444fb93a26be9cd (diff)
downloaddexon-sol-tools-3c40526bffcccbad2a64f92f69f3b6ec63946c88.tar
dexon-sol-tools-3c40526bffcccbad2a64f92f69f3b6ec63946c88.tar.gz
dexon-sol-tools-3c40526bffcccbad2a64f92f69f3b6ec63946c88.tar.bz2
dexon-sol-tools-3c40526bffcccbad2a64f92f69f3b6ec63946c88.tar.lz
dexon-sol-tools-3c40526bffcccbad2a64f92f69f3b6ec63946c88.tar.xz
dexon-sol-tools-3c40526bffcccbad2a64f92f69f3b6ec63946c88.tar.zst
dexon-sol-tools-3c40526bffcccbad2a64f92f69f3b6ec63946c88.zip
Merge pull request #171 from 0xProject/feature/zrx-getter
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);
+ });
+ });
});