Skip to content

Commit

Permalink
Fix connect cmd options
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Dec 27, 2023
1 parent 2569109 commit 2883345
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ program.command('connect')
.requiredOption('-e1, --endpoint-1 <string>', 'sChain 1 endpoint')
.requiredOption('-e2, --endpoint-2 <string>', 'sChain 2 endpoint')
.action(async (options) => {
const opts = options.opts()
await connect(opts.name1, opts.name2, opts.privateKey1, opts.privateKey2, opts.endpoint1, opts.endpoint2)
await connect(
options.name1,
options.name2,
options.privateKey1,
options.privateKey2,
options.endpoint1,
options.endpoint2
)
});

program.parse();
Expand Down

0 comments on commit 2883345

Please sign in to comment.