Skip to content

Commit

Permalink
chore(pkg): fix some function names in comment (#4905)
Browse files Browse the repository at this point in the history
Signed-off-by: binchengqu <[email protected]>
  • Loading branch information
binchengqu authored Nov 22, 2024
1 parent 2f2ef4a commit 4dc554e
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 4dc554e

Please sign in to comment.