Skip to content

Commit 164546a

Browse files
committed
fix: validation of the user wallets
1 parent 125b63d commit 164546a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/commands/connect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ export function connectCommand(): Command {
376376
envValue: process.env.SETTLEMINT_USER_WALLET,
377377
cliParamValue: userWallet,
378378
configValue: configApplication?.userWallet,
379-
validate: (value) => !!new URL(value ?? "").toString(),
379+
validate: (value) => !!value?.trim(),
380380
message: "Select a HD private key to manage your user wallets",
381381
existingMessage: "A valid HD private key for user wallets is already provided. Do you want to change it?",
382382
});

0 commit comments

Comments
 (0)