aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test/erc721_wrapper_test.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 08:35:25 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 08:35:25 +0800
commit6f8e98e53727a1efc08800017cf2bde38884c982 (patch)
treed58aa9662d32688f17675d70ed77be2170f54e06 /packages/contract-wrappers/test/erc721_wrapper_test.ts
parente093864bff4b9e6191d6ed4d7fe8ce9c60c5c367 (diff)
downloaddexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar.gz
dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.tar.zst
dexon-0x-contracts-6f8e98e53727a1efc08800017cf2bde38884c982.zip
In contract-wrappers, remove setProvider and add unsubscribeAll method.
Diffstat (limited to 'packages/contract-wrappers/test/erc721_wrapper_test.ts')
-rw-r--r--packages/contract-wrappers/test/erc721_wrapper_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract-wrappers/test/erc721_wrapper_test.ts b/packages/contract-wrappers/test/erc721_wrapper_test.ts
index 0b4d7c468..c57370b7b 100644
--- a/packages/contract-wrappers/test/erc721_wrapper_test.ts
+++ b/packages/contract-wrappers/test/erc721_wrapper_test.ts
@@ -326,7 +326,7 @@ describe('ERC721Wrapper', () => {
);
})().catch(done);
});
- it('Outstanding subscriptions are cancelled when contractWrappers.setProvider called', (done: DoneCallback) => {
+ it('Outstanding subscriptions are cancelled when contractWrappers.unsubscribeAll called', (done: DoneCallback) => {
(async () => {
const callbackNeverToBeCalled = callbackErrorReporter.reportNodeCallbackErrors(done)(
(logEvent: DecodedLogEvent<ERC721TokenApprovalEventArgs>) => {
@@ -340,7 +340,7 @@ describe('ERC721Wrapper', () => {
callbackNeverToBeCalled,
);
const callbackToBeCalled = callbackErrorReporter.reportNodeCallbackErrors(done)();
- contractWrappers.setProvider(provider);
+ contractWrappers.unsubscribeAll();
contractWrappers.erc721Token.subscribe(
tokenAddress,
ERC721TokenEvents.Approval,