diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-13 19:29:02 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-13 19:29:02 +0800 |
commit | 52dc6b77104792852eb7cdffb4a088b35b46f2be (patch) | |
tree | 2b50d2ad0f9f7a724a633d1572454254cf731c04 /test/exchange_wrapper_test.ts | |
parent | 72318314c66147b008d5ceedc02f8b8530960a9e (diff) | |
download | dexon-sol-tools-52dc6b77104792852eb7cdffb4a088b35b46f2be.tar dexon-sol-tools-52dc6b77104792852eb7cdffb4a088b35b46f2be.tar.gz dexon-sol-tools-52dc6b77104792852eb7cdffb4a088b35b46f2be.tar.bz2 dexon-sol-tools-52dc6b77104792852eb7cdffb4a088b35b46f2be.tar.lz dexon-sol-tools-52dc6b77104792852eb7cdffb4a088b35b46f2be.tar.xz dexon-sol-tools-52dc6b77104792852eb7cdffb4a088b35b46f2be.tar.zst dexon-sol-tools-52dc6b77104792852eb7cdffb4a088b35b46f2be.zip |
Add getContractAddressAsync and tests
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r-- | test/exchange_wrapper_test.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index deb76447e..f9cf9651f 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -22,6 +22,7 @@ import { } from '../src'; import {FillScenarios} from './utils/fill_scenarios'; import {TokenUtils} from './utils/token_utils'; +import {assert} from '../src/utils/assert'; chaiSetup.configure(); const expect = chai.expect; @@ -709,4 +710,10 @@ describe('ExchangeWrapper', () => { expect(orderHash).to.equal(orderHashFromContract); }); }); + describe('#getContractAddressAsync', () => { + it('returns the exchange contract address', async () => { + const exchangeAddress = await zeroEx.exchange.getContractAddressAsync(); + assert.isETHAddressHex('exchangeAddress', exchangeAddress); + }); + }); }); |