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

chore: replace NearSchema with near(inside_near_sdk); add missing BorshSchema p2 #1212

Merged
merged 5 commits into from
Jul 2, 2024

Conversation

dj8yfo
Copy link
Collaborator

@dj8yfo dj8yfo commented Jul 2, 2024

Replace #[derive(NearSchema)] with #[near(inside_nearsdk)]

for `near_sdk::store::free_list::FreeList`

from

            impl<T> crate::borsh::BorshSchema for FreeList<T>
            impl<T> crate::borsh::BorshSchema for FreeList__NEAR_SCHEMA_PROXY<T>
    impl<T> borsh::ser::BorshSerialize for FreeList<T>
    impl<T> borsh::de::BorshDeserialize for FreeList<T>

to

    impl<T> crate::borsh::ser::BorshSerialize for FreeList<T>
    impl<T> crate::borsh::de::BorshDeserialize for FreeList<T>
    impl<T> crate::borsh::BorshSchema for FreeList<T>

for `near_sdk::store::vec::Vector`

from

            impl<T> crate::borsh::BorshSchema for Vector<T>
            impl<T> crate::borsh::BorshSchema for Vector__NEAR_SCHEMA_PROXY<T>
    impl<T> borsh::ser::BorshSerialize for Vector<T>
    impl<T> borsh::de::BorshDeserialize for Vector<T>

to

    impl<T> crate::borsh::ser::BorshSerialize for Vector<T>
    impl<T> crate::borsh::de::BorshDeserialize for Vector<T>
    impl<T> crate::borsh::BorshSchema for Vector<T>

Add missing #[derive(BorshSchema)] via #[near(inside_nearsdk)]

  1. for IterableSet<T, H = Sha256>
  2. for IterableMap<K, V, H = Sha256>

@dj8yfo dj8yfo changed the title chore: replace NearSchema with near(inside_near_sdk); add missing BorshSchema p1 chore: replace NearSchema with near(inside_near_sdk); add missing BorshSchema p2 Jul 2, 2024
@dj8yfo dj8yfo marked this pull request as ready for review July 2, 2024 21:08
@frol frol merged commit 23f0545 into near:master Jul 2, 2024
19 checks passed
@frol frol mentioned this pull request Jul 2, 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.

2 participants