switching from allowHttp to noHttp so test script wont break

This commit is contained in:
Sebastian 2023-04-24 15:40:09 -03:00
parent e4407f8259
commit 0dc482c2de
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069

View File

@ -190,7 +190,7 @@ export const walletCli = clk
.flag("noThrottle", ["--no-throttle"], {
help: "Don't do any request throttling.",
})
.flag("allowHttp", ["--allow-http"], {
.flag("noHttp", ["--no-http"], {
help: "Allow unsafe http connections.",
})
.flag("version", ["-v", "--version"], {
@ -243,7 +243,7 @@ async function createLocalWallet(
const dbPath = walletCliArgs.wallet.walletDbFile ?? defaultWalletDbPath;
const myHttpLib = createPlatformHttpLib({
enableThrottling: walletCliArgs.wallet.noThrottle ? false : true,
allowHttp: walletCliArgs.wallet.allowHttp ? true : false,
allowHttp: walletCliArgs.wallet.noHttp ? false : true,
});
const wallet = await createNativeWalletHost({
persistentStoragePath: dbPath !== ":memory:" ? dbPath : undefined,