Skip to content

Commit 2636c0d

Browse files
authored
chore: delegate deposit/withdraw to xucli when currency is not btc/ltc (#712)
* chore: delegate deposit/withdraw to xucli when currency is not btc/ltc * fix "Not enough non-option arguments"
1 parent 2a04a7d commit 2636c0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

images/utils/launcher/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def handle_command(self, cmd):
179179
self.node_manager.cli("boltz", "btc", "deposit", *args)
180180
elif chain == "ltc":
181181
self.node_manager.cli("boltz", "ltc", "deposit", *args)
182+
else:
183+
self.node_manager.cli("xud", "walletdeposit", chain, *args)
182184
elif arg0 == "withdraw":
183185
if len(args) == 0:
184186
print("Missing chain")
@@ -188,6 +190,8 @@ def handle_command(self, cmd):
188190
self.node_manager.cli("boltz", "btc", "withdraw", *args)
189191
elif chain == "ltc":
190192
self.node_manager.cli("boltz", "ltc", "withdraw", *args)
193+
else:
194+
self.node_manager.cli("xud", "walletwithdraw", chain, *args)
191195
elif arg0 == "help":
192196
print(HELP)
193197
else:

0 commit comments

Comments
 (0)