test: getnewaddress RPC takes account name

This commit is contained in:
Roy Lee 2021-11-08 16:14:21 -08:00 committed by Jack Robison
parent c15bedfb6d
commit fe04bfa10a
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -436,8 +436,8 @@ class BlockchainNode:
def get_raw_change_address(self):
return self._cli_cmnd('getrawchangeaddress')
def get_new_address(self, address_type):
return self._cli_cmnd('getnewaddress', "", address_type)
def get_new_address(self, account):
return self._cli_cmnd('getnewaddress', account)
async def get_balance(self):
return await self._cli_cmnd('getbalance')