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

build(deps): allow specifying ink version via feature #80

Closed
wants to merge 1 commit into from

Conversation

evilrobot-01
Copy link
Collaborator

@evilrobot-01 evilrobot-01 commented Apr 22, 2024

Makes the selection of major ink version explicit until ink! v5 is audited. Not the best solution by any means, as it means that use needs to explicitly set the required version, but perhaps this at least allows the user to consider which version they are using. Perhaps also allows some backwards compatibility for now, but need to consider how this might work in the future when v5 becomes the default.

pop-api = { path = "../../../pop-api", default-features = false, features = ["inkv4"] }

Example contracts alternate between using v4 and v5.

Closes #56

Copy link
Collaborator

@brunopgalvao brunopgalvao left a comment

Choose a reason for hiding this comment

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

Should the version of ink! be abstracted away by the API? For example, if you are using v1.x.x of the Pop API, it is using ink4 under-the-hood, whereas v2.x.x uses ink5. Especially because we will be versioning the Pop API. So:

pop-api = { path = "../../../pop-api", default-features = false, version = "1.0.0" }

@evilrobot-01 evilrobot-01 marked this pull request as draft April 22, 2024 12:56
@r0gue-io r0gue-io deleted a comment from evilrobot-01 Apr 23, 2024
@evilrobot-01
Copy link
Collaborator Author

Closing in favour of #84

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.

chore: update pop-api and examples to official ink! v4.0
2 participants