-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade to hardhat 3 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| await currency.connect(admin).mint(anon, _A(100)); | ||
| expect(await currency.balanceOf(anon)).to.equal(_A(10100)); | ||
| await expect(currency.connect(admin).burn(anon, _A(150))).not.to.be.reverted; | ||
| await currency.connect(admin).burn(anon, _A(150)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya no hay not.to.be.reverted? O lo sacaste porque igual si revierte va a fallar el test igual?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahora es not.to.revert, pero no tenía mucho sentido porque si revierte el test va a fallar y tirar el stack del revert.
El assertion por algún motivo no estaba haciendo await de la transacción, entonces el assert posterior del balance fallaba, con este cambio se soluciona.
Es similar a este issue: NomicFoundation/hardhat#4725
Pero nosotros estamos en la versión 3.0.2 de chai-matchers, debería estar corregido. Tengo que reportarlo.
No description provided.