Browse Source

tests: Api expose ApiPromise .query

Mokhtar Naamani 3 years ago
parent
commit
6b5cc0619d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/network-tests/src/Api.ts

+ 5 - 0
tests/network-tests/src/Api.ts

@@ -150,6 +150,11 @@ export class Api {
     this.sender = new Sender(api, keyring, label)
   }
 
+  // expose only direct ability to query chain
+  get query() {
+    return this.api.query
+  }
+
   public enableDebugTxLogs(): void {
     this.sender.setLogLevel(LogLevel.Debug)
   }