Skip to content

Commit

Permalink
chore: fix some function names
Browse files Browse the repository at this point in the history
Signed-off-by: linchizhen <[email protected]>
  • Loading branch information
linchizhen committed May 31, 2024
1 parent 8b7d540 commit 4c85599
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action/candidate_transfer_ownership.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion blockindex/actionindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion blockindex/blockindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4c85599

Please sign in to comment.