From 0213375297df16662b08f3ef7b76ce06b7403ef6 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Tue, 14 Jun 2022 11:00:06 +0400 Subject: [PATCH] refactor!: remove outdated destroyInstance method BREAKING CHANGE: `destroyInstance` method removed It wasn't doing anything, just remove it's usages. --- src/ae/index.ts | 7 ------- test/integration/transaction.ts | 4 ---- 2 files changed, 11 deletions(-) diff --git a/src/ae/index.ts b/src/ae/index.ts index b6a0a1f34f..d5b772c3c1 100644 --- a/src/ae/index.ts +++ b/src/ae/index.ts @@ -46,13 +46,6 @@ export default stampit(NodePool, AccountResolver, { setCompilerUrl (compilerUrl: string, { ignoreVersion = false } = {}): void { this.compilerApi = new Compiler(compilerUrl, { ignoreVersion }) }, - /** - * Remove all listeners for RPC - */ - destroyInstance (): void { - const destroyMethods = ['destroyClient', 'destroyServer'] - destroyMethods.forEach((m) => typeof this[m] === 'function' && this[m]()) - }, ...mapObject( { ...spendMethods, diff --git a/test/integration/transaction.ts b/test/integration/transaction.ts index ee632af4ed..6a1e89e749 100644 --- a/test/integration/transaction.ts +++ b/test/integration/transaction.ts @@ -168,8 +168,4 @@ describe('Transaction', function () { expect(await aeSdk.getAccountNonce(address)).to.be.equal(+accountNonce + 1) expect(await aeSdk.getAccountNonce(address, { nonce: 1 })).to.be.equal(1) }) - - it('Destroy instance finishes without error', () => { - aeSdk.destroyInstance() - }) })