Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Pass executionContext as args to to try function #1394

Merged
merged 1 commit into from Jan 15, 2020
Merged

Conversation

yann300
Copy link
Collaborator

@yann300 yann300 commented Jan 14, 2020

No description provided.

@@ -214,27 +214,27 @@ class TxRunner {
}
}

async function tryTillReceiptAvailable (txhash, done) {
async function tryTillReceiptAvailable (txhash, executionContext) {
return new Promise((resolve, reject) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you like to remove this Promise class as async function will return promise anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not sure that is really possible in this context: the body of the function contain also an async function...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

can that be?

Copy link
Collaborator

Choose a reason for hiding this comment

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

hmmm, may be we can try and know better later

@Aniket-Engg Aniket-Engg merged commit 9eff53f into master Jan 15, 2020
@Aniket-Engg Aniket-Engg deleted the yann300-patch-2 branch January 15, 2020 10:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants