Skip to content

Commit d91f3f2

Browse files
authored
chore: fix some function names in comment (#1702)
1 parent 0368f0a commit d91f3f2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

sdk/node_create_transaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (tx *NodeCreateTransaction) GetGossipEndpoints() []Endpoint {
127127
return tx.gossipEndpoints
128128
}
129129

130-
// SetServiceEndpoints the list of service endpoints for gossip.
130+
// SetGossipEndpoints the list of service endpoints for gossip.
131131
func (tx *NodeCreateTransaction) SetGossipEndpoints(gossipEndpoints []Endpoint) *NodeCreateTransaction {
132132
tx._RequireNotFrozen()
133133
tx.gossipEndpoints = gossipEndpoints

sdk/node_update_transaction.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,19 @@ func (tx *NodeUpdateTransaction) SetDescription(description string) *NodeUpdateT
165165
return tx
166166
}
167167

168-
// SetDescription remove the description contents.
168+
// ClearDescription remove the description contents.
169169
func (tx *NodeUpdateTransaction) ClearDescription(description string) *NodeUpdateTransaction {
170170
tx._RequireNotFrozen()
171171
tx.description = ""
172172
return tx
173173
}
174174

175-
// GetServiceEndpoints the list of service endpoints for gossip.
175+
// GetGossipEndpoints the list of service endpoints for gossip.
176176
func (tx *NodeUpdateTransaction) GetGossipEndpoints() []Endpoint {
177177
return tx.gossipEndpoints
178178
}
179179

180-
// SetServiceEndpoints the list of service endpoints for gossip.
180+
// SetGossipEndpoints the list of service endpoints for gossip.
181181
func (tx *NodeUpdateTransaction) SetGossipEndpoints(gossipEndpoints []Endpoint) *NodeUpdateTransaction {
182182
tx._RequireNotFrozen()
183183
tx.gossipEndpoints = gossipEndpoints

sdk/token_nft_transfer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (transfer _TokenNftTransfer) ToBytes() []byte {
9191
return data
9292
}
9393

94-
// TokenNftTransfersFromBytes returns the TokenNftTransfer from a raw protobuf bytes representation
94+
// NftTransferFromBytes returns the TokenNftTransfer from a raw protobuf bytes representation
9595
func NftTransferFromBytes(data []byte) (_TokenNftTransfer, error) {
9696
if data == nil {
9797
return _TokenNftTransfer{}, errByteArrayNull

0 commit comments

Comments
 (0)