Skip to content

Commit 4b29d39

Browse files
committed
fix lint
1 parent 3661491 commit 4b29d39

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

clients/tfchain-client-go/account.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type AccountID types.AccountID
3939
// Balance
4040
type Balance struct {
4141
Free types.U128 `json:"free"`
42-
Reserved types.U128 `json:"reserverd"`
42+
Reserved types.U128 `json:"reserved"`
4343
MiscFrozen types.U128 `json:"misc_frozen"`
4444
FreeFrozen types.U128 `json:"free_frozen"`
4545
}
@@ -54,7 +54,7 @@ type AccountInfo struct {
5454

5555
// TODO: Add service response status code if avialble
5656
type ActivationServiceError struct {
57-
StatusCode int // 0 or a valid HTTP status code. 0 indicates that a response was not recived due to an error such host unreachable.
57+
StatusCode int // 0 or a valid HTTP status code. 0 indicates that a response was not received due to an error such host unreachable.
5858
Err error
5959
}
6060

clients/tfchain-client-go/go.mod

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module github.com/threefoldtech/tfchain/clients/tfchain-client-go
22

33
go 1.21
44

5-
toolchain go1.21.3
6-
75
require (
86
github.com/cenkalti/backoff v2.2.1+incompatible
97
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.12

clients/tfchain-client-go/service_contract_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func TestServiceContract(t *testing.T) {
8585
})
8686

8787
// 4. Bill consumer for service contract
88-
// should be able to go to future block to test varaible amount greater than 0
88+
// should be able to go to future block to test variable amount greater than 0
8989

9090
err = cl.ServiceContractBill(serviceIdentity, serviceContractID, variableAmount, billMetadata)
9191
require.NoError(t, err)

clients/tfchain-client-go/utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,11 @@ func (s *Substrate) checkForError(callResponse *CallResponse) error {
536536
if *accId == who {
537537
if int(e.DispatchError.ModuleError.Index) < len(moduleErrors) {
538538
if int(errIndex) >= len(moduleErrors[e.DispatchError.ModuleError.Index]) || moduleErrors[e.DispatchError.ModuleError.Index] == nil {
539-
return fmt.Errorf("module error (%d) with unknown code %d occured, please update the module error list", e.DispatchError.ModuleError.Index, e.DispatchError.ModuleError.Error)
539+
return fmt.Errorf("module error (%d) with unknown code %d occurred, please update the module error list", e.DispatchError.ModuleError.Index, e.DispatchError.ModuleError.Error)
540540
}
541541
return errors.New(moduleErrors[e.DispatchError.ModuleError.Index][errIndex])
542542
} else {
543-
return fmt.Errorf("unknown module error (%d) with code %d occured, please create the module error list", e.DispatchError.ModuleError.Index, e.DispatchError.ModuleError.Error)
543+
return fmt.Errorf("unknown module error (%d) with code %d occurred, please create the module error list", e.DispatchError.ModuleError.Index, e.DispatchError.ModuleError.Error)
544544
}
545545
}
546546
}

0 commit comments

Comments
 (0)