diff options
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); + }); + }); }); |