diff --git a/action/candidate_transfer_ownership.go b/action/candidate_transfer_ownership.go index 10a2d1ee85..b756c56aae 100644 --- a/action/candidate_transfer_ownership.go +++ b/action/candidate_transfer_ownership.go @@ -88,7 +88,7 @@ func NewCandidateTransferOwnership(nonce, gasLimit uint64, gasPrice *big.Int, }, nil } -// NewCandidateTransferOwnershipFromAction decode data to CandidateTransferOwnership +// NewCandidateTransferOwnershipFromABIBinary decode data to CandidateTransferOwnership func NewCandidateTransferOwnershipFromABIBinary(data []byte) (*CandidateTransferOwnership, error) { var ( paramsMap = map[string]any{} diff --git a/blockindex/actionindex.go b/blockindex/actionindex.go index 4e5fe31232..3a80b9d037 100644 --- a/blockindex/actionindex.go +++ b/blockindex/actionindex.go @@ -28,7 +28,7 @@ func (a *ActionIndex) Serialize() []byte { return byteutil.Must(proto.Marshal(a.toProto())) } -// Desrialize from byte stream +// Deserialize from byte stream func (a *ActionIndex) Deserialize(buf []byte) error { pb := &indexpb.ActionIndex{} if err := proto.Unmarshal(buf, pb); err != nil { diff --git a/blockindex/blockindex.go b/blockindex/blockindex.go index b8d4c565f2..86ab0ce11c 100644 --- a/blockindex/blockindex.go +++ b/blockindex/blockindex.go @@ -42,7 +42,7 @@ func (b *BlockIndex) Serialize() []byte { return byteutil.Must(proto.Marshal(b.toProto())) } -// Desrialize from byte stream +// Deserialize from byte stream func (b *BlockIndex) Deserialize(buf []byte) error { pb := &indexpb.BlockIndex{} if err := proto.Unmarshal(buf, pb); err != nil {