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 deps to use scale-type-resolver 0.2 #1565

Merged
merged 4 commits into from
Apr 30, 2024
Merged

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Apr 29, 2024

Mainly this just means converting &type_ids to type_ids as we pass them by value and not reference now.

Also add back a check in WrapperKeepOpaque to confirm that the struct we're pointing at is the right one, to resovle a small TODO.

@jsdw jsdw requested a review from a team as a code owner April 29, 2024 14:38
// TODO: When `scale-type-resolver` [provides struct names](https://github.com/paritytech/scale-type-resolver/issues/4), check that this struct name is `WrapperKeepOpaque`
use scale_decode::visitor::DecodeError;

if value.name() != Some("WrapperKeepOpaque") {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can get the struct name now for a little additional sanity check that our custom logic here makes sense given the target type.

@jsdw jsdw merged commit bc079e7 into master Apr 30, 2024
13 checks passed
@jsdw jsdw deleted the jsdw-type-resolver-0.2 branch April 30, 2024 07:45
@jsdw jsdw mentioned this pull request May 16, 2024
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.

None yet

3 participants