Mokhtar Naamani 4 lat temu
rodzic
commit
4a0bab0889
2 zmienionych plików z 2 dodań i 4 usunięć
  1. 1 1
      tests/network-tests/src/Job.ts
  2. 1 3
      utils/api-scripts/README.md

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

@@ -30,7 +30,7 @@ export class Job {
     this._flows = flows
     this._outcome = new InvertedPromise<JobOutcome>()
     this._manager.on('run', this.run.bind(this))
-    this.debug = extendDebug(`${this._label}`)
+    this.debug = extendDebug(`job:${this._label}`)
   }
 
   // Depend on another job to complete successfully

+ 1 - 3
utils/api-scripts/README.md

@@ -20,9 +20,7 @@ async function main() {
   const provider = new WsProvider('ws://127.0.0.1:9944')
 
   // Create the API and wait until ready
-  const api = new ApiPromise({ provider, types })
-
-  await api.isReady
+  const api = await ApiPromise.create({ provider, types })
 
   // Retrieve the chain & node information information via rpc calls
   const [chain, nodeName, nodeVersion] = await Promise.all([