pull/3605/head
Rongjian Lan 4 years ago
parent d7b968e579
commit 6379edbe7a
  1. 2
      staking/types/delegation_test.go

@ -161,7 +161,7 @@ func TestNoEarlyUnlock(t *testing.T) {
amount4 := big.NewInt(4000)
delegation.Undelegate(epoch4, amount4)
result := delegation.RemoveUnlockedUndelegations(curEpoch, lastEpochInCommittee, 7, false)
result := delegation.RemoveUnlockedUndelegations(curEpoch, lastEpochInCommittee, 7, true)
if result.Cmp(big.NewInt(0)) != 0 {
t.Errorf("should not allow early unlock")
}

Loading…
Cancel
Save