added missing implementation in wallet cli
This commit is contained in:
parent
6d3db4ce6c
commit
2b9686ccc6
@ -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,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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,
|
||||
});
|
||||
|
||||
{
|
||||
|
@ -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" });
|
||||
|
Loading…
Reference in New Issue
Block a user