From 7e81e28a4242309dd67872fa3b168591a37743ec Mon Sep 17 00:00:00 2001 From: jk Date: Fri, 25 Sep 2020 13:53:55 +0200 Subject: [PATCH] fix/new-keys-generation --- src/renderer/store/handlers/identity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/store/handlers/identity.js b/src/renderer/store/handlers/identity.js index 3ee140e07..88c7bce7b 100644 --- a/src/renderer/store/handlers/identity.js +++ b/src/renderer/store/handlers/identity.js @@ -496,7 +496,7 @@ export const generateNewAddress = () => async (dispatch, getState) => { electronStore.set('addresses', JSON.stringify([])) } const addresses = JSON.parse(electronStore.get('addresses')) - const address = await client().addresses.createTransparent() + const address = await client.getNewTransparentAdress() addresses.unshift(address) dispatch(setUserAddreses(Immutable.List(addresses))) electronStore.set('addresses', JSON.stringify(addresses)) @@ -506,7 +506,7 @@ export const generateNewShieldedAddress = () => async (dispatch, getState) => { electronStore.set('shieldedAddresses', JSON.stringify([])) } const addresses = JSON.parse(electronStore.get('shieldedAddresses')) - const address = await client().addresses.create('sapling') + const address = await client.getNewShieldedAdress() addresses.unshift(address) dispatch(setUserShieldedAddreses(Immutable.List(addresses))) electronStore.set('shieldedAddresses', JSON.stringify(addresses))