fix: Revoke without using python wrapper

This commit is contained in:
2024-01-26 17:17:01 +11:00
parent 8540265173
commit 0045ff28d1
3 changed files with 36 additions and 9 deletions

View File

@@ -471,8 +471,22 @@ def revoke(account,domain):
}
try:
response = hsw.sendREVOKE(account_name,password,domain)
return response
response = hsw.rpc_selectWallet(account_name)
if response['error'] is not None:
return {
"error": {
"message": response['error']['message']
}
}
response = hsw.rpc_walletPassphrase(password,10)
if response['error'] is not None:
return {
"error": {
"message": response['error']['message']
}
}
response = hsw.rpc_sendREVOKE(domain)
return response
except Exception as e:
return {
"error": {