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: Remove clone from Promise API #783

Merged
merged 5 commits into from
Apr 8, 2022
Merged

Conversation

austinabell
Copy link
Contributor

Having clone for this is very error-prone, especially since some constructions are cached and cloning opens up to a lot of bugs.

Not quite sure why it was added in the first place

CHANGELOG.md Outdated
Comment on lines 16 to 17
### Fixed
- Remove `Clone` implementation for `Promise` (error prone) https://github.com/near/near-sdk-rs/pull/783
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better in the Removed section?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I figured since it's an actual bug I would include here, guess it could go either way, though

@austinabell austinabell merged commit a2b3491 into master Apr 8, 2022
@austinabell austinabell deleted the austin/rm_promise_clone branch April 8, 2022 14:46
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