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 first/last_index_of functions to use deep object comparison #612

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

jayz22
Copy link
Contributor

@jayz22 jayz22 commented Dec 15, 2022

What

Fix the bug in examples discovered earlier by @sisuresh, by using deep object comparisons in host vector's first/last_index_of functions

Why

HostVec contains RawVals which may be objects of the identical in content have different object handles, thus deep comparison is needed.

Known limitations

[TODO or N/A]

@sisuresh sisuresh merged commit 94a347c into stellar:main Dec 15, 2022
@sisuresh
Copy link
Contributor

@jayz22 Thanks for fixing this! I already merged, but do you mind adding a test case as well in another PR?

sisuresh added a commit to stellar/rs-soroban-sdk that referenced this pull request Dec 15, 2022
### What
Revert #798 and update env
to pull in this bug fix -
stellar/rs-soroban-env#612.

I'm reverting the deploy change so we can update our examples with this
fix and have a more up to date set of changes that we can release if
needed.
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.

3 participants