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: update height if staked when height decreases #4873

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

istae
Copy link
Member

@istae istae commented Oct 22, 2024

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Updates height in the staking contract if the height is changed (increase AND decrease).
Deposit stake returns with an error if the staked amount is not enough with respect to the height.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@istae istae merged commit c75fa3f into master Oct 22, 2024
25 of 26 checks passed
@istae istae deleted the swip21-stake branch October 22, 2024 15:24
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