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

fix: Use generic_err constructor instead of literal #941

Merged
merged 2 commits into from
Jul 6, 2023

Conversation

apollo-sturdy
Copy link
Contributor

@apollo-sturdy apollo-sturdy commented Jul 6, 2023

The cosmwasm-std StdError struct has a feature-gated field backtraces that you forgot to fill. This breaks compilation for anyone who depends on the Pyth SDK and tries to enable the backtraces feature. This PR simply uses the StdError::generic_err instead of creating the struct literal so that you don't have create the backtrace yourself.

See this issue for more info: CosmWasm/cosmwasm#1760

@vercel
Copy link

vercel bot commented Jul 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Jul 6, 2023 5:49pm

@vercel
Copy link

vercel bot commented Jul 6, 2023

@apollo-sturdy is attempting to deploy a commit to the pyth-web Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

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

thanks!

@jayantk
Copy link
Contributor

jayantk commented Jul 6, 2023

I checked that this passes the pre-commit checks locally. I think pre-commit tends to fail on external contributions for some reason.

@jayantk jayantk merged commit 4f41525 into pyth-network:main Jul 6, 2023
5 of 8 checks passed
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