Commit bcef7d54 authored by Thibaut Sardan's avatar Thibaut Sardan Committed by YJ
Browse files

Fix nits (#346)

* stray logs and initialization

* stray log
parent 76b0f9cc
Pipeline #50633 failed with stage
in 38 seconds
......@@ -69,7 +69,6 @@ export default class AccountsStore extends Container {
updateNew(accountUpdate) {
this.setState({ newAccount : {...this.state.newAccount, ...accountUpdate} })
console.log(this.state.newAccount);
}
getNew() {
......
......@@ -4,14 +4,11 @@ export function accountId({
address,
networkKey
}) {
console.log('address => ', address);
console.log('netwokr list -> ', NETWORK_LIST);
if (typeof address !== 'string' || address.length === 0 || !networkKey || !NETWORK_LIST[networkKey]) {
throw new Error(`Couldn't create an accountId. Address or networkKey missing, or network key was invalid.`);
}
const { ethereumChainId='', protocol, genesisHash } = NETWORK_LIST[networkKey];
const { ethereumChainId='', protocol, genesisHash='' } = NETWORK_LIST[networkKey];
if (protocol === NetworkProtocols.SUBSTRATE) {
return `${protocol}:${address}:${genesisHash}`;
......
Supports Markdown
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