From 2883345a43533e4cf066a221c92141ad7cf1e363 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Wed, 27 Dec 2023 13:26:46 +0000 Subject: [PATCH] Fix connect cmd options --- cli/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cli/index.ts b/cli/index.ts index 891ede9..4cda916 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -43,8 +43,14 @@ program.command('connect') .requiredOption('-e1, --endpoint-1 ', 'sChain 1 endpoint') .requiredOption('-e2, --endpoint-2 ', '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();