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

x/lock: Fix ExtendLockup API #1937

Merged
merged 3 commits into from
Jul 1, 2022
Merged

Conversation

mattverse
Copy link
Member

Sub-component of: #1838

What is the purpose of the change

The current ExtendLockup API directly takes in the lock object as a pointer as its parameter. This PR changes this existing API to take in lock ID to improve safety for this API

Brief Changelog

ImproveExtendLockup API safety.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? no
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? no
  • How is the feature or change documented? not documented

@mattverse mattverse requested a review from a team July 1, 2022 07:53
@mattverse mattverse mentioned this pull request Jul 1, 2022
7 tasks
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

We should have a changelog for this IMO

x/lockup/keeper/lock.go Outdated Show resolved Hide resolved
Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

LGTM, but lets add a Go API changelog entry

@github-actions github-actions bot added the C:docs Improvements or additions to documentation label Jul 1, 2022
@ValarDragon ValarDragon merged commit 99304f2 into main Jul 1, 2022
@ValarDragon ValarDragon deleted the mattverse/change-extendlock-api branch July 1, 2022 20:11
@mattverse
Copy link
Member Author

thanks for adding the chnage log and merging!

@mattverse mattverse added the A:backport/v10.x backport patches to v10.x branch label Jul 12, 2022
mergify bot pushed a commit that referenced this pull request Jul 12, 2022
* Fix extendlock api

* Apply suggestions from code review

* Add changelog

Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
Co-authored-by: Dev Ojha <dojha@berkeley.edu>
(cherry picked from commit 99304f2)

# Conflicts:
#	CHANGELOG.md
mattverse added a commit that referenced this pull request Jul 12, 2022
* x/lock: Fix `ExtendLockup` API  (#1937)

* Fix extendlock api

* Apply suggestions from code review

* Add changelog

Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
Co-authored-by: Dev Ojha <dojha@berkeley.edu>
(cherry picked from commit 99304f2)

# Conflicts:
#	CHANGELOG.md

* Fix merge conflict: changelog

Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
Co-authored-by: mattverse <mattpark1028@gmail.com>
ValarDragon added a commit that referenced this pull request Aug 1, 2022
ValarDragon added a commit that referenced this pull request Aug 3, 2022
* Revert "x/lock: Fix `ExtendLockup` API  (backport #1937) (#2030)"

This reverts commit bd32316.

* Revert "Refactor `lock` method (backport #1936) (#2029)"

This reverts commit d733f64.

* Update changelog

* Update changelog
@github-actions github-actions bot mentioned this pull request Feb 15, 2024
@github-actions github-actions bot mentioned this pull request Mar 15, 2024
@github-actions github-actions bot mentioned this pull request Apr 1, 2024
@github-actions github-actions bot mentioned this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v10.x backport patches to v10.x branch C:docs Improvements or additions to documentation C:x/lockup
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants