Browse Source

Query node & cont dir integration testing: switch from ExtrinsicsHelper to Sender for transaction sending

iorveth 4 years ago
parent
commit
5550b05c76
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/network-tests/src/Api.ts

+ 2 - 2
tests/network-tests/src/Api.ts

@@ -1713,6 +1713,7 @@ export class Api {
     ).filter((addr) => addr !== '')
   }
   */
+
   public async terminateApplication(
     leader: string,
     applicationId: ApplicationId,
@@ -1931,8 +1932,7 @@ export class Api {
       operations // We provide parsed operations as second argument
     )
 
-    const txHelper = new ExtrinsicsHelper(this.api)
-    await txHelper.sendAndCheck(pair, [transaction], 'Transaction failed!')
+    await this.sender.signAndSend(transaction, pair.address, false)
   }
 
   public async createChannelEntity(channel: ChannelEntity, pair: KeyringPair): Promise<void> {