Skip to content

Conversation

LianaHus
Copy link
Collaborator

@LianaHus LianaHus commented Apr 6, 2021

No description provided.

@LianaHus LianaHus requested a review from yann300 April 6, 2021 09:22
const callid = this.accountListCallId
const txOrigin = this.el.querySelector('#txorigin')
try {
let accounts = await this.blockchain.getAccounts()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this function throws, migtht be that we still want the accounts list to be cleared in the UI.

@yann300 yann300 requested review from Aniket-Engg and yann300 April 9, 2021 06:46
if (!accounts) accounts = []
if (this.accountListCallId > callid) return
this.accountListCallId++
for (var loadedaddress in this.loadedAccounts) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loadedaddress can be let

this.loadedAccounts[address] = 1
}
}
for (var i in accounts) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can be let

@LianaHus LianaHus merged commit f47657d into master Apr 12, 2021
@LianaHus LianaHus deleted the eer branch April 12, 2021 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants