diff --git a/clients/tfchain-client-go/account.go b/clients/tfchain-client-go/account.go index 1f36901e2..7ceded2fc 100644 --- a/clients/tfchain-client-go/account.go +++ b/clients/tfchain-client-go/account.go @@ -39,7 +39,7 @@ type AccountID types.AccountID // Balance type Balance struct { Free types.U128 `json:"free"` - Reserved types.U128 `json:"reserverd"` + Reserved types.U128 `json:"reserved"` MiscFrozen types.U128 `json:"misc_frozen"` FreeFrozen types.U128 `json:"free_frozen"` } @@ -54,7 +54,7 @@ type AccountInfo struct { // TODO: Add service response status code if avialble type ActivationServiceError struct { - StatusCode int // 0 or a valid HTTP status code. 0 indicates that a response was not recived due to an error such host unreachable. + StatusCode int // 0 or a valid HTTP status code. 0 indicates that a response was not received due to an error such host unreachable. Err error } diff --git a/clients/tfchain-client-go/go.mod b/clients/tfchain-client-go/go.mod index 160d6a661..bf5921f1c 100644 --- a/clients/tfchain-client-go/go.mod +++ b/clients/tfchain-client-go/go.mod @@ -2,8 +2,6 @@ module github.com/threefoldtech/tfchain/clients/tfchain-client-go go 1.21 -toolchain go1.21.3 - require ( github.com/cenkalti/backoff v2.2.1+incompatible github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.12 diff --git a/clients/tfchain-client-go/service_contract_test.go b/clients/tfchain-client-go/service_contract_test.go index b92af46d2..72661fae9 100644 --- a/clients/tfchain-client-go/service_contract_test.go +++ b/clients/tfchain-client-go/service_contract_test.go @@ -85,7 +85,7 @@ func TestServiceContract(t *testing.T) { }) // 4. Bill consumer for service contract - // should be able to go to future block to test varaible amount greater than 0 + // should be able to go to future block to test variable amount greater than 0 err = cl.ServiceContractBill(serviceIdentity, serviceContractID, variableAmount, billMetadata) require.NoError(t, err) diff --git a/clients/tfchain-client-go/utils.go b/clients/tfchain-client-go/utils.go index e1d214240..88d496a73 100644 --- a/clients/tfchain-client-go/utils.go +++ b/clients/tfchain-client-go/utils.go @@ -536,11 +536,11 @@ func (s *Substrate) checkForError(callResponse *CallResponse) error { if *accId == who { if int(e.DispatchError.ModuleError.Index) < len(moduleErrors) { if int(errIndex) >= len(moduleErrors[e.DispatchError.ModuleError.Index]) || moduleErrors[e.DispatchError.ModuleError.Index] == nil { - 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) + 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) } return errors.New(moduleErrors[e.DispatchError.ModuleError.Index][errIndex]) } else { - 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) + 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) } } }