From 892cfc660e79a8239687c248bad3fa734fcaed59 Mon Sep 17 00:00:00 2001 From: mixmix Date: Thu, 28 Nov 2024 20:52:01 +1300 Subject: [PATCH] fix "account register" command bug --- src/account/command.ts | 1 + tests/e2e.cli.sh | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/account/command.ts b/src/account/command.ts index d718d62..30b69dd 100644 --- a/src/account/command.ts +++ b/src/account/command.ts @@ -119,5 +119,6 @@ function entropyAccountRegister () { await persistVerifyingKeyToAccount(opts.config, verifyingKey, opts.account) cliWrite(verifyingKey) + process.exit(0) }) } diff --git a/tests/e2e.cli.sh b/tests/e2e.cli.sh index ebeb63c..30bcab5 100755 --- a/tests/e2e.cli.sh +++ b/tests/e2e.cli.sh @@ -5,15 +5,8 @@ # Dependencies # - internet connection # - jq - see https://jqlang.github.io/jq -# - an entropy testnet: -# ``` -# git clone git@github.com:entropyxyz/sdk.git -# cd sdk -# ./dev/bin/spin-up.sh four-nodes -# ./dev/bin/spin-down.sh four-nodes (later) -# ```` # -# Build + isntall the CLI: +# Build + install the CLI: # ``` # yarn build # npm install -g @@ -21,7 +14,9 @@ # # Run the tests: # ``` +# yarn test:network:up # ./tests/e2e.cli.sh +# yarn test:network:down # ``` #