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

Remove unnecessary scale + scale-info deps from contracts #2386

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Jan 30, 2025

The ink umbrella crate re-exports them since ink! v5 (ink::scale, ink::scale_info). No need to depend on them from a contract.

See here for more details: https://use.ink/faq/migrating-from-ink-4-to-5/#scale-dependencies-were-moved-to-ink-entrance-crate.

@cmichi cmichi requested a review from ascjones as a code owner January 30, 2025 11:01
@cmichi cmichi merged commit b86b693 into master Jan 30, 2025
6 of 11 checks passed
@cmichi cmichi deleted the cmichi-remove-unnecessary-scale-deps-from-contracts branch January 30, 2025 11:01
cmichi added a commit that referenced this pull request Jan 30, 2025
cmichi added a commit that referenced this pull request Jan 30, 2025
* Remove unnecessary comments

* Fix mismatching return types: `!` vs `{}`

The issue here is that in `std` the function signature of
`return_value` is different from `no_std`.

* Update `scale` deps

* Revert "Update `scale` deps"

This reverts commit 6d4c340.

* Revert "Remove unnecessary `scale` + `scale-info` deps from contracts (#2386)"

This reverts commit b86b693.
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.

1 participant