Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ func (tx *Transaction[T]) GetTransactionBodySize() (int, error) {
return len(txBytes), nil
}

// GetBodySizeAllChunks returns the total size of the transaction, for all chunks.
// GetTransactionBodySizeAllChunks returns the total size of the transaction, for all chunks.
func (tx *Transaction[T]) GetTransactionBodySizeAllChunks() ([]int, error) {
if !tx.IsFrozen() {
return nil, errTransactionIsNotFrozen
Expand Down
2 changes: 1 addition & 1 deletion tck/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
"deleteToken": postHandler(HandleError, handler.New(tokenService.DeleteToken)),
"updateTokenFeeSchedule": postHandler(HandleError, handler.New(tokenService.UpdateTokenFeeSchedule)),
"associateToken": postHandler(HandleError, handler.New(tokenService.AssociateToken)),
"dissociateToken": postHandler(HandleError, handler.New(tokenService.DissociatesToken)),
"dissociateToken": postHandler(HandleError, handler.New(tokenService.DisassociateToken)),
"pauseToken": postHandler(HandleError, handler.New(tokenService.PauseToken)),
"unpauseToken": postHandler(HandleError, handler.New(tokenService.UnpauseToken)),
"freezeToken": postHandler(HandleError, handler.New(tokenService.FreezeToken)),
Expand Down
8 changes: 4 additions & 4 deletions tck/methods/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (t *FileService) SetSdkService(service *SDKService) {
t.sdkService = service
}

// createFile jRPC method for createFile
// CreateFile jRPC method for createFile
func (t *FileService) CreateFile(_ context.Context, params param.CreateFileParams) (*response.FileResponse, error) {
transaction := hiero.NewFileCreateTransaction().SetGrpcDeadline(&threeSecondsDuration)

Expand Down Expand Up @@ -75,7 +75,7 @@ func (t *FileService) CreateFile(_ context.Context, params param.CreateFileParam
}, nil
}

// updateFile jRPC method for updateFile
// UpdateFile jRPC method for updateFile
func (t *FileService) UpdateFile(_ context.Context, params param.UpdateFileParams) (*response.FileResponse, error) {
transaction := hiero.NewFileUpdateTransaction().SetGrpcDeadline(&threeSecondsDuration)

Expand Down Expand Up @@ -136,7 +136,7 @@ func (t *FileService) UpdateFile(_ context.Context, params param.UpdateFileParam
}, nil
}

// deleteFile jRPC method for deleteFile
// DeleteFile jRPC method for deleteFile
func (t *FileService) DeleteFile(_ context.Context, params param.UpdateFileParams) (*response.FileResponse, error) {
transaction := hiero.NewFileDeleteTransaction().SetGrpcDeadline(&threeSecondsDuration)

Expand Down Expand Up @@ -169,7 +169,7 @@ func (t *FileService) DeleteFile(_ context.Context, params param.UpdateFileParam
}, nil
}

// appendFile jRPC method for appendFile
// AppendFile jRPC method for appendFile
func (t *FileService) AppendFile(_ context.Context, params param.AppendFileParams) (*response.FileResponse, error) {
transaction := hiero.NewFileAppendTransaction().SetGrpcDeadline(&threeSecondsDuration)

Expand Down
2 changes: 1 addition & 1 deletion tck/methods/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
}

// DisassociateToken jRPC method for dissociateToken
func (t *TokenService) DissociatesToken(_ context.Context, params param.AssociateDissociatesTokenParams) (*response.TokenResponse, error) {
func (t *TokenService) DisassociateToken(_ context.Context, params param.AssociateDissociatesTokenParams) (*response.TokenResponse, error) {

Check warning on line 362 in tck/methods/token.go

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

tck/methods/token.go#L362

Method DisassociateToken has a cyclomatic complexity of 9 (limit is 8)
transaction := hiero.NewTokenDissociateTransaction().SetGrpcDeadline(&threeSecondsDuration)

// Set account ID
Expand Down
Loading