Browse Source

createOpening fix

Leszek Wiesner 4 years ago
parent
commit
8f12d68d4f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      cli/src/commands/working-groups/createOpening.ts

+ 1 - 3
cli/src/commands/working-groups/createOpening.ts

@@ -79,9 +79,7 @@ export default class WorkingGroupsCreateOpening extends WorkingGroupsCommandBase
       this.log(chalk.white('Sending the extrinsic...'))
       await this.sendExtrinsic(
         account,
-        apiModuleByGroup[this.group],
-        'addOpening',
-        defaultValues!.map((v) => v.value)
+        this.getOriginalApi().tx[apiModuleByGroup[this.group]].addOpening(...defaultValues!.map((v) => v.value))
       )
       this.log(chalk.green('Opening succesfully created!'))
     }