Skip to content

Commit 9ecd6c8

Browse files
committed
chore: fix some comments to improve readability
Signed-off-by: cuoguojida <cuoguojida@outlook.com>
1 parent c25f5f9 commit 9ecd6c8

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

sdk/account_info_unit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/stretchr/testify/require"
1212
)
1313

14-
// The function checks the conversation methods on the AccountInfo struct. We check wether it is correctly converted to protobuf and back.
14+
// The function checks the conversation methods on the AccountInfo struct. We check whether it is correctly converted to protobuf and back.
1515
func TestUnitAccountInfoToBytes(t *testing.T) {
1616
t.Parallel()
1717

sdk/assessed_custom_fee_unit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
// SPDX-License-Identifier: Apache-2.0
1212

13-
// The test checks the conversation methods on the AssessedCustomFee struct. We check wether it is correctly converted to protobuf and back.
13+
// The test checks the conversation methods on the AssessedCustomFee struct. We check whether it is correctly converted to protobuf and back.
1414
func TestUnitassessedCustomFee(t *testing.T) {
1515
t.Parallel()
1616
assessedFeeOriginal := _MockAssessedCustomFee()

sdk/crypto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ func (pk PublicKey) _ToSignaturePairProtobuf(signature []byte) *services.Signatu
866866
return &services.SignaturePair{}
867867
}
868868

869-
// SignTransaction signes the transaction and adds the signature to the transaction
869+
// SignTransaction signs the transaction and adds the signature to the transaction
870870
func (sk PrivateKey) SignTransaction(tx TransactionInterface) ([]byte, error) {
871871
baseTx := tx.getBaseTransaction()
872872

sdk/ecdsa_private_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func (sk _ECDSAPrivateKey) _ToProtoKey() *services.Key {
313313
return sk._PublicKey()._ToProtoKey()
314314
}
315315

316-
// _SignTransaction signes the transaction and adds the signature to the transaction
316+
// _SignTransaction signs the transaction and adds the signature to the transaction
317317
func (sk _ECDSAPrivateKey) _SignTransaction(tx *Transaction[TransactionInterface]) ([]byte, error) {
318318
tx._RequireOneNodeAccountID()
319319

sdk/freeze_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ func (freezeType FreezeType) String() string {
3131
return "TELEMETRY_UPGRADE"
3232
}
3333

34-
panic(fmt.Sprintf("unreacahble: FreezeType.String() switch statement is non-exhaustive. Status: %v", uint32(freezeType)))
34+
panic(fmt.Sprintf("unreachable: FreezeType.String() switch statement is non-exhaustive. Status: %v", uint32(freezeType)))
3535
}

sdk/topic_message_query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func (query *TopicMessageQuery) Subscribe(client *Client, onNext func(TopicMessa
211211
if grpcErr, ok := status.FromError(streamResult.err); ok {
212212
query.errorHandler(*grpcErr)
213213
} else {
214-
query.errorHandler(*status.New(codes.Unknown, "Unknown error ocurred"))
214+
query.errorHandler(*status.New(codes.Unknown, "Unknown error occurred"))
215215
}
216216
return
217217
}

tck/methods/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type AccountService struct {
2222
// Variable to be set to `SetGrpcDeadline` for all transactions
2323
var threeSecondsDuration = time.Second * 3
2424

25-
// SetSdkService We set object, which is holding our client param. Pass it by referance, because TCK is dynamically updating it
25+
// SetSdkService We set object, which is holding our client param. Pass it by reference, because TCK is dynamically updating it
2626
func (a *AccountService) SetSdkService(service *SDKService) {
2727
a.sdkService = service
2828
}

0 commit comments

Comments
 (0)