Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #74 from ZbayApp/fix/new-keys-generation
Browse files Browse the repository at this point in the history
fix/new-keys-generation
  • Loading branch information
jkdev601 authored Sep 25, 2020
2 parents 0522195 + 7e81e28 commit 0184dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/store/handlers/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit 0184dca

Please sign in to comment.