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

Types found within astroport and astroport-pair on crates.io are incompatible #376

Open
ewoolsey opened this issue Aug 24, 2023 · 2 comments

Comments

@ewoolsey
Copy link

For testing my smart contracts I'm using cw-multi-test which means that I need both the Message type definitions and the smart contract entry points (eg: execute, query) together. Bringing in both of these crates results in a type collision because they are not connected together properly on crates.io. This is likely due to the versions being incompatible.

@epanchee
Copy link
Collaborator

Hi Eric,

Could you clarify the issue?
astroport-pair has astroport v2.8.0 dependency which can be found on crates.io.

@ewoolsey
Copy link
Author

ewoolsey commented Aug 25, 2023

Could you clarify the issue?

Ah yeah sorry if I wasn't clean. I'll give a concrete example.

So none of the versions line up between astroport-pair and astro-port.

fn example(deps: DepsMut, env: Env, info: MessageInfo) {
    let msg = astroport::pair::ExecuteMsg::ClaimOwnership {},   // <--- The version of ExecuteMsg used here
    astroport_pair::contract::execute(deps, env, info, msg);    // <--- Is incompatible with the one expected here
}

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