Skip to content
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

feat: Add backtraces feature for cosmwasm-std Errors #80

Merged
merged 4 commits into from
Jun 15, 2023

Conversation

apollo-sturdy
Copy link
Contributor

cosmwasm-std has a feature backtraces that lets you see which line number an Error came from. This is very useful as otherwise in tests you just get the test line number where you do .unwrap. Unfortunately osmosis-std currently breaks if you try to enable the backtraces feature since osmosis-std-derive tries to create StdError without the backtrace parameter. This PR fixes that. It also fixes some other bugs where the tests did not compile (the tests still fail, but this is also from upstream main, I did not bother to fix them). Lastly it generates types for the Cosmos gov module so that we can use them in osmosis-test-tube instead of relying on cosmrs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants