ui: Improve rpc page usability for Decred.

This commit is contained in:
tecnovert
2024-05-21 14:29:02 +02:00
parent aa1e1fd79c
commit fcf234ef34
8 changed files with 85 additions and 36 deletions

View File

@@ -564,7 +564,7 @@ class DCRInterface(Secp256k1Interface):
def withdrawCoin(self, value: float, addr_to: str, subfee: bool = False) -> str:
if subfee:
raise ValueError('TODO')
params = [addr_to, value]
params = [addr_to, float(value)]
return self.rpc_wallet('sendtoaddress', params)
def isAddressMine(self, address: str, or_watch_only: bool = False) -> bool: