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

upgrading from osmosis-std-derive = "0.15.3" to 0.20.1 - CosmwasmExt - shim not found #110

Open
PFC-developer opened this issue Mar 26, 2024 · 1 comment

Comments

@PFC-developer
Copy link

Hi!

I'm this package to parse the proto files for tokenfactory and v0.15.3 works great.

but v0.20.1 (actually anything beyond 0.15.3) fails with the following issue

error[E0433]: failed to resolve: could not find `shim` in the crate root
  --> packages/pfc-treasurechest/src/tf/cosmos/denom.rs:22:5
   |
22 |     CosmwasmExt,
   |     ^^^^^^^^^^^ could not find `shim` in the crate root
   |
   = note: this error originates in the derive macro `CosmwasmExt` (in Nightly builds, run with -Z macro-backtrace for more info)

I was wondering if you had seen this before, and how I can upgrade to the later version

@iboss-ptk
Copy link
Collaborator

wasn't intended for the derived to be used as a standalone in the first place so I didn't take care of that but this should be the cause

PR is welcome, my suggestion is feature flag it, make it osmosis-std-only or something along that line.

Or else, for a quick hack, you can copy paste this into your crate::shim.

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

No branches or pull requests

2 participants