added missing implementation in wallet cli
This commit is contained in:
parent
6d3db4ce6c
commit
2b9686ccc6
@ -577,12 +577,14 @@ backupCli
|
|||||||
backupCli
|
backupCli
|
||||||
.subcommand("addProvider", "add-provider")
|
.subcommand("addProvider", "add-provider")
|
||||||
.requiredArgument("url", clk.STRING)
|
.requiredArgument("url", clk.STRING)
|
||||||
|
.maybeArgument("name", clk.STRING)
|
||||||
.flag("activate", ["--activate"])
|
.flag("activate", ["--activate"])
|
||||||
.action(async (args) => {
|
.action(async (args) => {
|
||||||
await withWallet(args, async (wallet) => {
|
await withWallet(args, async (wallet) => {
|
||||||
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
|
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
|
||||||
backupProviderBaseUrl: args.addProvider.url,
|
backupProviderBaseUrl: args.addProvider.url,
|
||||||
activate: args.addProvider.activate,
|
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, {
|
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
|
||||||
backupProviderBaseUrl: sync.baseUrl,
|
backupProviderBaseUrl: sync.baseUrl,
|
||||||
activate: false,
|
activate: false,
|
||||||
|
name: sync.baseUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -63,6 +64,7 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) {
|
|||||||
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
|
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
|
||||||
backupProviderBaseUrl: sync.baseUrl,
|
backupProviderBaseUrl: sync.baseUrl,
|
||||||
activate: true,
|
activate: true,
|
||||||
|
name: sync.baseUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -58,6 +58,7 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) {
|
|||||||
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
|
await wallet.client.call(WalletApiOperation.AddBackupProvider, {
|
||||||
backupProviderBaseUrl: sync.baseUrl,
|
backupProviderBaseUrl: sync.baseUrl,
|
||||||
activate: true,
|
activate: true,
|
||||||
|
name: sync.baseUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
await withdrawViaBank(t, { wallet, bank, exchange, amount: "TESTKUDOS:10" });
|
await withdrawViaBank(t, { wallet, bank, exchange, amount: "TESTKUDOS:10" });
|
||||||
|
Loading…
Reference in New Issue
Block a user