Skip to content

Commit a7219c9

Browse files
committed
Update client
1 parent 3ecdbad commit a7219c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

thorclient/builtin/staker.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,23 +205,23 @@ func (s *Staker) IncreaseStake(validationID thor.Address, amount *big.Int) *bind
205205
return s.contract.Method("increaseStake", validationID).WithValue(amount)
206206
}
207207

208-
func (s *Staker) GetWithdrawable(validationID thor.Bytes32) (*big.Int, error) {
208+
func (s *Staker) GetWithdrawable(validationID thor.Address) (*big.Int, error) {
209209
out := new(big.Int)
210210
if err := s.contract.Method("getWithdrawable", validationID).Call().AtRevision(s.revision).ExecuteInto(&out); err != nil {
211211
return nil, err
212212
}
213213
return out, nil
214214
}
215215

216-
func (s *Staker) GetRewards(validatorID thor.Bytes32, period uint32) (*big.Int, error) {
216+
func (s *Staker) GetRewards(validatorID thor.Address, period uint32) (*big.Int, error) {
217217
out := new(big.Int)
218218
if err := s.contract.Method("getRewards", validatorID, period).Call().AtRevision(s.revision).ExecuteInto(&out); err != nil {
219219
return nil, err
220220
}
221221
return out, nil
222222
}
223223

224-
func (s *Staker) GetCompletedPeriods(validatorID thor.Bytes32) (*uint32, error) {
224+
func (s *Staker) GetCompletedPeriods(validatorID thor.Address) (*uint32, error) {
225225
out := uint32(0)
226226
if err := s.contract.Method("getCompletedPeriods", validatorID).Call().AtRevision(s.revision).ExecuteInto(&out); err != nil {
227227
return nil, err

0 commit comments

Comments
 (0)