Skip to content

Commit 2f06d6f

Browse files
authored
chore(polkadot): upgrade to v1.1.0 (#902)
1 parent 622e7d2 commit 2f06d6f

File tree

41 files changed

+757
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+757
-325
lines changed

clients/tfchain-client-go/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ func (s *Substrate) checkForError(callResponse *CallResponse) error {
536536
if int(errIndex) >= len(moduleErrors[e.DispatchError.ModuleError.Index]) || moduleErrors[e.DispatchError.ModuleError.Index] == nil {
537537
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)
538538
}
539-
return fmt.Errorf(moduleErrors[e.DispatchError.ModuleError.Index][errIndex])
539+
return errors.New(moduleErrors[e.DispatchError.ModuleError.Index][errIndex])
540540
} else {
541541
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)
542542
}

0 commit comments

Comments
 (0)