Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
bcef7d54
Commit
bcef7d54
authored
Aug 30, 2019
by
Thibaut Sardan
Committed by
YJ
Aug 30, 2019
Browse files
Fix nits (#346)
* stray logs and initialization * stray log
parent
76b0f9cc
Pipeline
#50633
failed with stage
in 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/stores/AccountsStore.js
View file @
bcef7d54
...
...
@@ -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
()
{
...
...
src/util/account.js
View file @
bcef7d54
...
...
@@ -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
}
`
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment