change test code for bondedDelegation
@@ -61,7 +61,7 @@ func TestPRepStatus_GetBondedDelegation(t *testing.T) {
status1 := s.GetPRepStatus(addr1)
status1.SetDelegated(delegated)
bonded := big.NewInt(int64(1))
- s.GetPRepStatus(addr1).SetBonded(bonded)
+ status1.SetBonded(bonded)
res := status1.GetBondedDelegation(5)
assert.Equal(t, 0, res.Cmp(big.NewInt(int64(20))))
