-
Notifications
You must be signed in to change notification settings - Fork 1k
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
SpentCoinState.Clone could not work as expected #1368
Comments
@shargon how can we reproduce this from user scenario? could you enlight us? |
With this UT without the patch |
It seems that this UT doesn't test |
I think it's good. |
Close? |
Describe the bug
When we clone a SpentCoinState, we copy the mutable object
Items
, it should be copied instead of referenced.To Reproduce
Expected behavior
Cloned items should be independent.
(Optional) Additional context
neo-2
The text was updated successfully, but these errors were encountered: