-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
No revert trace when using factory from typechain
#3216
Comments
This issue is also being tracked on Linear. We use Linear to manage our development process, but we keep the conversations on Github. LINEAR-ID: d035b504-2b40-4e00-802a-242b90b5599d |
Wait, this confuses me. Typechain does return a properly typed contract when you do |
Oh, I know why it's not working for you. Can you remove the |
Closing for lack of further details. We monitor closed issues though, so I'll re-open it if you can add more information. |
grr.. missed your first notification. apologies. |
This might be related to #2848 and #2248 (what is this, EIPs?! ;) )
Running failed tests when importing a contract via
getContractFactory
works as intended.However, when importing via
Contract__factory
from typechain, and usingattach
, there is no trace if there is a failed transaction.Importing from
typechain
is useful since it enables autocomplete for functions (using coc-typescript), this feature does not work when importing withgetContractFactory
MVP for the bug can be found here:
https://github.com/amanusk/hardhat-template/tree/typechain-bug
Running the test (which should fail), returns different results based on how the instance was intiated:
The text was updated successfully, but these errors were encountered: