mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 08:46:08 -04:00
functional_tests: add validate_address tests
This commit is contained in:
parent
8adde33e01
commit
7d9b7fee43
3 changed files with 126 additions and 3 deletions
|
@ -750,6 +750,19 @@ class Wallet(object):
|
|||
}
|
||||
return self.rpc.send_json_rpc_request(set_log_categories)
|
||||
|
||||
def validate_address(self, address, any_net_type = False, allow_openalias = False):
|
||||
validate_address = {
|
||||
'method': 'validate_address',
|
||||
'params': {
|
||||
'address': address,
|
||||
'any_net_type': any_net_type,
|
||||
'allow_openalias': allow_openalias,
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(validate_address)
|
||||
|
||||
def get_version(self):
|
||||
get_version = {
|
||||
'method': 'get_version',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue