Skip to content

Commit

Permalink
chore(pkg): fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: binchengqu <[email protected]>
  • Loading branch information
binchengqu committed Nov 20, 2024
1 parent 23445a1 commit 74cd2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/settlement/swap/chequebook/chequebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 74cd2ae

Please sign in to comment.