fix: fix the cancel unbond #12967
fix: fix the cancel unbond #12967mergify[bot] merged 21 commits intocosmos:mainfrom gsk967:sai/fix_12931
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12967 +/- ##
==========================================
- Coverage 55.84% 55.68% -0.16%
==========================================
Files 649 644 -5
Lines 55022 54935 -87
==========================================
- Hits 30726 30591 -135
- Misses 21822 21878 +56
+ Partials 2474 2466 -8
|
atheeshp
left a comment
There was a problem hiding this comment.
looks good, except few doubts.
amaury1093
left a comment
There was a problem hiding this comment.
I like the solution, good work. Will make a more thorough review tomorrow.
| @@ -130,8 +130,27 @@ func NewUnbondingDelegation( | |||
|
|
|||
| // AddEntry - append entry to the unbonding delegation | |||
| func (ubd *UnbondingDelegation) AddEntry(creationHeight int64, minTime time.Time, balance math.Int) { | |||
There was a problem hiding this comment.
let's add a unit test for this function
amaury1093
left a comment
There was a problem hiding this comment.
Logic looks good to me, but let's add a unit test for AddEntry before merging.
A nice to have would be a migration test, but not blocking.
| @@ -130,8 +130,27 @@ func NewUnbondingDelegation( | |||
|
|
|||
| // AddEntry - append entry to the unbonding delegation | |||
There was a problem hiding this comment.
Let's update this godoc too
|
@AmauryM I added store migrations and tests, can you please look into those changes. |
amaury1093
left a comment
There was a problem hiding this comment.
LGTM, just pending latest naming nits
Description
This pull request contains the fix regarding cancel unbonding delegations
It will remove duplicate ubdEntries which have same
creation_heightand create new ubdEntry with updatedbalanceandinitial_balanceCloses: #12931
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!to the type prefix if API or client breaking changeCHANGELOG.mdReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!in the type prefix if API or client breaking change