From a880968e4dba4dd5f6d3dfdeb2d32792beb4407e Mon Sep 17 00:00:00 2001 From: soonsouth Date: Tue, 10 Dec 2024 11:42:14 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: soonsouth --- pkg/proto/eth_utils.go | 2 +- pkg/state/accounts_data_storage.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/proto/eth_utils.go b/pkg/proto/eth_utils.go index 07587f042..d75fd69c9 100644 --- a/pkg/proto/eth_utils.go +++ b/pkg/proto/eth_utils.go @@ -72,7 +72,7 @@ func copyBytes(bytes []byte) []byte { return copiedBytes } -// copyBytes returns an exact copy of the provided big.Int. +// copyBigInt returns an exact copy of the provided big.Int. func copyBigInt(v *big.Int) *big.Int { if v == nil { return nil diff --git a/pkg/state/accounts_data_storage.go b/pkg/state/accounts_data_storage.go index 5369d7f4e..c60e2539d 100644 --- a/pkg/state/accounts_data_storage.go +++ b/pkg/state/accounts_data_storage.go @@ -114,7 +114,7 @@ func (s *accountsDataStorage) setLastAddrNum(lastAddrNum uint64) error { return nil } -// newestAddressToNum returns the number of given address. It looks up for the address in cache map first +// newestAddrToNum returns the number of given address. It looks up for the address in cache map first // and if not present in state. The second result parameter is true if account's number was found cache otherwise false. // Error can be `keyvalue.ErrNotFound` if no corresponding number found for given address. func (s *accountsDataStorage) newestAddrToNum(addr proto.Address) (uint64, bool, error) {