added missing implementation in wallet cli

This commit is contained in:
Sebastian 2021-07-16 10:12:20 -03:00
parent 6d3db4ce6c
commit 2b9686ccc6
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
3 changed files with 5 additions and 0 deletions

View File

@ -577,12 +577,14 @@ backupCli
backupCli
.subcommand("addProvider", "add-provider")
.requiredArgument("url", clk.STRING)
.maybeArgument("name", clk.STRING)
.flag("activate", ["--activate"])
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
backupProviderBaseUrl: args.addProvider.url,
activate: args.addProvider.activate,
name: args.addProvider.name || args.addProvider.url,
});
});
});

View File

@ -53,6 +53,7 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) {
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
backupProviderBaseUrl: sync.baseUrl,
activate: false,
name: sync.baseUrl,
});
{
@ -63,6 +64,7 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) {
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
backupProviderBaseUrl: sync.baseUrl,
activate: true,
name: sync.baseUrl,
});
{

View File

@ -58,6 +58,7 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) {
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
backupProviderBaseUrl: sync.baseUrl,
activate: true,
name: sync.baseUrl,
});
await withdrawViaBank(t, { wallet, bank, exchange, amount: "TESTKUDOS:10" });