mirror of
https://github.com/monero-project/monero.git
synced 2025-09-19 00:54:38 -04:00
functional_tests: add integrated address tests
This commit is contained in:
parent
b384309e17
commit
3e93c157bd
3 changed files with 125 additions and 1 deletions
|
@ -290,3 +290,26 @@ class Wallet(object):
|
|||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(get_transfers)
|
||||
|
||||
def make_integrated_address(self, standard_address = '', payment_id = ''):
|
||||
make_integrated_address = {
|
||||
'method': 'make_integrated_address',
|
||||
'params' : {
|
||||
'standard_address': standard_address,
|
||||
'payment_id': payment_id,
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(make_integrated_address)
|
||||
|
||||
def split_integrated_address(self, integrated_address):
|
||||
split_integrated_address = {
|
||||
'method': 'split_integrated_address',
|
||||
'params' : {
|
||||
'integrated_address': integrated_address,
|
||||
},
|
||||
'jsonrpc': '2.0',
|
||||
'id': '0'
|
||||
}
|
||||
return self.rpc.send_json_rpc_request(split_integrated_address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue