Skip to content

Commit

Permalink
fix lint go client
Browse files Browse the repository at this point in the history
  • Loading branch information
renauter committed Aug 23, 2024
1 parent 9e9303a commit a3e3a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/tfchain-client-go/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ func (s *Substrate) checkForError(callResponse *CallResponse) error {
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(moduleErrors[e.DispatchError.ModuleError.Index][errIndex])
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)
}
Expand Down

0 comments on commit a3e3a76

Please sign in to comment.