Browse Source

Missing await statement

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

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

@@ -1928,7 +1928,7 @@ export class Api {
   async sendContentDirectoryTransaction(memberId: number, parser: InputParser): Promise<Hash> {
   async sendContentDirectoryTransaction(memberId: number, parser: InputParser): Promise<Hash> {
     // We parse the input into CreateEntity and AddSchemaSupportToEntity operations
     // We parse the input into CreateEntity and AddSchemaSupportToEntity operations
     const operations = await parser.getEntityBatchOperations()
     const operations = await parser.getEntityBatchOperations()
-    return this.api.tx.contentDirectory
+    return await this.api.tx.contentDirectory
       .transaction(
       .transaction(
         { Member: memberId }, // We use member with id 0 as actor (in this case we assume this is Alice)
         { Member: memberId }, // We use member with id 0 as actor (in this case we assume this is Alice)
         operations // We provide parsed operations as second argument
         operations // We provide parsed operations as second argument