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

Update parity scale dependencies #687

Merged
merged 5 commits into from
Dec 7, 2023
Merged

Conversation

haerdib
Copy link
Contributor

@haerdib haerdib commented Dec 7, 2023

Updated dependencies of

  • scale-decode
  • scale-encode

Removed local no-std copy of scale-value because it is now no-std compatible upstream as well. Therefore, added scale-value as dependency instead.

Minimal codebase adaptions were needed, but they still match the subxt version. There were further adaptions in subxt, but this will require more changes in our codebase, this should be done in a different issue: #688

part of #671

@haerdib haerdib self-assigned this Dec 7, 2023
@haerdib haerdib added the F9-dependencies Pull requests that update a dependency file label Dec 7, 2023
@haerdib haerdib mentioned this pull request Dec 7, 2023
crate::scale_value::encode_as_type(&field, field.context, types, &mut actual_bytes)
.expect("should be able to encode properly");
}
assert_eq!(actual_bytes, actual.field_bytes());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This assert failed after upgrading the scale libraries and was removed in subxt as well. I simply followed suit, didn't look further into it. Since all the other tests are passing, I'm inclined to believe this is alright. Either way, there is a follow up issue: #688

@haerdib haerdib marked this pull request as ready for review December 7, 2023 08:43
@haerdib haerdib requested a review from masapr December 7, 2023 08:43
@haerdib haerdib changed the title Update parity scale depenciens Update parity scale dependencies Dec 7, 2023
Copy link
Collaborator

@masapr masapr left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@haerdib haerdib merged commit ff4e3d0 into master Dec 7, 2023
51 checks passed
@haerdib haerdib deleted the bh/671-update-parity-scale branch December 7, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E1-breaksnothing F9-dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants