Commit e7bd259b authored by Eriksson Monteiro's avatar Eriksson Monteiro

update millix node

parent d1615617
...@@ -48,7 +48,8 @@ class _PMW9LXqUv7vXLpbA extends Endpoint { ...@@ -48,7 +48,8 @@ class _PMW9LXqUv7vXLpbA extends Endpoint {
authenticationSuccessHandler = () => { authenticationSuccessHandler = () => {
const walletID = wallet.getDefaultActiveWallet(); const walletID = wallet.getDefaultActiveWallet();
const keyIdentifier = wallet.defaultKeyIdentifier; database.getRepository('keychain').getWalletDefaultKeyIdentifier(walletID)
.then(keyIdentifier => {
database.getRepository('address').getAddressBaseAttribute(keyIdentifier, 'key_public') database.getRepository('address').getAddressBaseAttribute(keyIdentifier, 'key_public')
.then(publicKey => { .then(publicKey => {
const addressVersion = database.getRepository('address').getDefaultAddressVersion().version; const addressVersion = database.getRepository('address').getDefaultAddressVersion().version;
...@@ -62,6 +63,7 @@ class _PMW9LXqUv7vXLpbA extends Endpoint { ...@@ -62,6 +63,7 @@ class _PMW9LXqUv7vXLpbA extends Endpoint {
} }
}); });
}); });
});
eventBus.removeListener('wallet_authentication_error', authenticationErrorHandler); eventBus.removeListener('wallet_authentication_error', authenticationErrorHandler);
}; };
eventBus.once('wallet_unlock', authenticationSuccessHandler); eventBus.once('wallet_unlock', authenticationSuccessHandler);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment