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

solana: add HashMap and HashSet types support #367

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Conversation

belopash
Copy link
Contributor

@belopash belopash commented Jan 15, 2025

According to borsh spec, hashMap and hashSet values have to be key ordered. However, borsh-js implememtation doesn't follow this. So I think that to simplify, we can omit it as well.

https://github.com/near/borsh-js/blob/63ad2a30f5d682e9bc8ae923446ff584f4b93f69/borsh-ts/serialize.ts#L156
https://github.com/near/borsh-js/blob/63ad2a30f5d682e9bc8ae923446ff584f4b93f69/borsh-ts/serialize.ts#L171

@belopash belopash merged commit d5f5f99 into master Jan 15, 2025
1 check passed
@belopash belopash deleted the borsh-hashmap branch January 15, 2025 15:40
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