Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Use async/await instead of then - #148

Merged
darkwing merged 2 commits into
mainfrom
async-await
Aug 25, 2022
Merged

Use async/await instead of then#148
darkwing merged 2 commits into
mainfrom
async-await

Conversation

@darkwing

Copy link
Copy Markdown
Contributor

Much easier to read than the mess of then's.

@darkwing
darkwing requested a review from a team as a code ownerAugust 24, 2022 21:52

@mcmiremcmire left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good idea! Had some suggestions.

Comment threadindex.js
Comment threadindex.js Outdated
Comment threadindex.js Outdated
Comment threadindex.js Outdated
Comment threadindex.js Outdated
Comment threadindex.js Outdated
Comment threadindex.js Outdated
Comment threadindex.js
Comment threadindex.js
@@ -692,35 +660,35 @@ class KeyringController extends EventEmitter {
* @param {string} address - An account address.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: There is a .then a few lines up from here in getAccounts that we can remove as well

Comment threadindex.js Outdated

@GudahttGudahtt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work @darkwing ! This has been on my wishlist for a long time. A few suggestions but everything looks good

Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>

@ryanmlryanml left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

awesome!

@GudahttGudahtt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@darkwing
darkwing merged commit e797bdf into mainAug 25, 2022
@darkwing
darkwing deleted the async-await branch August 25, 2022 22:29
@nitindudeja2107nitindudeja2107 mentioned this pull request Aug 26, 2022
Gudahtt added a commit that referenced this pull request Nov 7, 2022
A new vault should be unlocked after being created, because the
password is submitted as part of creating the vault. This was
accidentally broken as part of #148. A unit test has been added to
ensure this doesn't happen again.
Gudahtt added a commit that referenced this pull request Nov 7, 2022
A new vault should be unlocked after being created, because the
password is submitted as part of creating the vault. This was
accidentally broken as part of #148. A unit test has been added to
ensure this doesn't happen again.
@legobeatlegobeat mentioned this pull request Sep 10, 2023
9 tasks
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@darkwing@mcmire@Gudahtt@ryanml