Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

replaced nested code with async/await syntax #171

Conversation

emmanueldenloye
Copy link
Contributor

Should resolve issues #132 and #133

const buyOpHash = await buyOp.confirmation().then(() => buyOp.hash);
$log.info(`Operation injected at hash=${buyOpHash}`);
} catch (error) {
$log.info(`Error: ${JSON.stringify(error,null,2)}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since you are not doing any special handling within this nested try/catch, consider having only one try/catch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@emmanueldenloye emmanueldenloye merged commit ce1f779 into emmanuel/fixed-price-sale Feb 8, 2021
@obstropolos obstropolos deleted the emmanuel-fixed-price-sale/async-await-in-test branch April 20, 2021 01:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants