From 0cdb8b264be0304550b42ea2caba9fb52f14b24c Mon Sep 17 00:00:00 2001
From: rubyisrust <rustrover@icloud.com>
Date: Mon, 12 Aug 2024 16:53:13 +0800
Subject: [PATCH] chore: fix some function names

Signed-off-by: rubyisrust <rustrover@icloud.com>
---
 api/debug/trace.go                             | 2 +-
 blockchain/types/account/account.go            | 2 +-
 blockchain/types/account/account_serializer.go | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/api/debug/trace.go b/api/debug/trace.go
index 2a9dcbe95..422bf6296 100644
--- a/api/debug/trace.go
+++ b/api/debug/trace.go
@@ -51,7 +51,7 @@ func (h *HandlerT) StartGoTrace(file string) error {
 	return nil
 }
 
-// StopTrace stops an ongoing trace.
+// StopGoTrace stops an ongoing trace.
 func (h *HandlerT) StopGoTrace() error {
 	h.mu.Lock()
 	defer h.mu.Unlock()
diff --git a/blockchain/types/account/account.go b/blockchain/types/account/account.go
index cd1030c9a..3d02e7125 100644
--- a/blockchain/types/account/account.go
+++ b/blockchain/types/account/account.go
@@ -148,7 +148,7 @@ func NewAccountWithType(t AccountType) (Account, error) {
 	return nil, ErrUndefinedAccountType
 }
 
-// NewAccountWithType creates an Account object initialized with the given map.
+// NewAccountWithMap creates an Account object initialized with the given map.
 func NewAccountWithMap(t AccountType, values map[AccountValueKeyType]interface{}) (Account, error) {
 	switch t {
 	case LegacyAccountType:
diff --git a/blockchain/types/account/account_serializer.go b/blockchain/types/account/account_serializer.go
index ec0267f92..e338bc94d 100644
--- a/blockchain/types/account/account_serializer.go
+++ b/blockchain/types/account/account_serializer.go
@@ -57,7 +57,7 @@ func NewAccountSerializerExt() *AccountSerializer {
 	return &AccountSerializer{preserveExtHash: true}
 }
 
-// NewAccountSerializerWithAccount creates a new AccountSerializer object with the given account.
+// NewAccountSerializerExtWithAccount creates a new AccountSerializer object with the given account.
 func NewAccountSerializerExtWithAccount(a Account) *AccountSerializer {
 	return &AccountSerializer{a.Type(), a, true}
 }