From 74cd2aec06d6d9f34f9217b90443f332959046b1 Mon Sep 17 00:00:00 2001 From: binchengqu Date: Wed, 20 Nov 2024 22:28:54 +0800 Subject: [PATCH] chore(pkg): fix some function names in comment Signed-off-by: binchengqu --- pkg/settlement/swap/chequebook/chequebook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {