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

fix: relax schema_container_of target requirement with ?Sized to allow slices #245

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

dj8yfo
Copy link
Collaborator

@dj8yfo dj8yfo commented Oct 12, 2023

this blocks

#[near_bindgen]
impl Contract {
    pub fn foo(
        &self,
        #[serializer(borsh)]
        c: &[bool],
    ) {}
}

it has been tested in cargo-near#109 with

[patch.crates-io]
borsh = { git = 'https://github.com/near/borsh-rs.git', branch = "slice_schema_container" }

that this patch works

@dj8yfo dj8yfo marked this pull request as ready for review October 12, 2023 18:43
@dj8yfo dj8yfo requested a review from frol as a code owner October 12, 2023 18:43
@dj8yfo dj8yfo changed the title chore: relax schema_container_of target requirement with ?Sized to allow slices fix: relax schema_container_of target requirement with ?Sized to allow slices Oct 12, 2023
@frol frol merged commit ff34f73 into master Oct 13, 2023
7 checks passed
@frol frol deleted the slice_schema_container branch October 13, 2023 08:41
@dj8yfo dj8yfo restored the slice_schema_container branch October 13, 2023 12:56
@dj8yfo dj8yfo deleted the slice_schema_container branch October 13, 2023 19:12
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

2 participants