diff --git a/pkg/settlement/swap/chequebook/chequebook.go b/pkg/settlement/swap/chequebook/chequebook.go index ee04a818f93..35c58593ea9 100644 --- a/pkg/settlement/swap/chequebook/chequebook.go +++ b/pkg/settlement/swap/chequebook/chequebook.go @@ -61,7 +61,7 @@ type Service interface { Issue(ctx context.Context, beneficiary common.Address, amount *big.Int, sendChequeFunc SendChequeFunc) (*big.Int, error) // LastCheque returns the last cheque we issued for the beneficiary. LastCheque(beneficiary common.Address) (*SignedCheque, error) - // LastCheque returns the last cheques for all beneficiaries. + // LastCheques returns the last cheques for all beneficiaries. LastCheques() (map[common.Address]*SignedCheque, error) } @@ -284,7 +284,7 @@ func keyBeneficiary(key []byte, prefix string) (beneficiary common.Address, err return common.HexToAddress(split[1]), nil } -// LastCheque returns the last cheques for all beneficiaries. +// LastCheques returns the last cheques for all beneficiaries. func (s *service) LastCheques() (map[common.Address]*SignedCheque, error) { result := make(map[common.Address]*SignedCheque) err := s.store.Iterate(lastIssuedChequeKeyPrefix, func(key, val []byte) (stop bool, err error) {