Merge pull request #477 from talvasconcelos/fix/watchonly

get only one address instead of multiple
This commit is contained in:
Arc 2021-12-30 17:08:23 +00:00 committed by GitHub
commit 6645b156e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,11 +82,9 @@ async def api_wallet_delete(wallet_id, w: WalletTypeInfo = Depends(require_admin
@watchonly_ext.get("/api/v1/address/{wallet_id}")
async def api_fresh_address(wallet_id, w: WalletTypeInfo = Depends(get_key_type)):
await get_fresh_address(wallet_id)
address = await get_fresh_address(wallet_id)
addresses = await get_addresses(wallet_id)
return [address.dict() for address in addresses]
return [address.dict()]
@watchonly_ext.get("/api/v1/addresses/{wallet_id}")