-
Notifications
You must be signed in to change notification settings - Fork 336
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
Second attempt to cosmwasm-core #2136
Comments
I have another proposal that is somewhat tangential to this, so leaving this here for feedback:
This happens because both versions of cw-std provide the same exports in
This should not cause too much confusion for users, since they don't usually interact directly with these exports, but cargo should then be able to resolve the cosmwasm-exports crate to one version, avoiding that problem for future major versions. Limitations:
Opinions? Is this too much of a niche problem? |
I would absolutely address this. However, I think an easier way is to put the |
Right now on main, the existence cosmwasm-core creates all sorts of indirections an undesired dependencies that we want to avoid. So let's revert the current approach.
A new attempt to pull out cosmwasm-core that we may or may not do should have the following properties
One way to do that is to ensure the error types for the relevant symbols are not StdError.
from_base64
can get it's ownInvalidBase64Error
HexBinary
can get its ownInvalidDataSizeError
impl TryFrom<&str>
, all the other errors are already specializedThose new errors can then be converted to StdError in cosmwasm-std.
The text was updated successfully, but these errors were encountered: