dock-substrate icon indicating copy to clipboard operation
dock-substrate copied to clipboard

Some modules don't expose error definitions to chain metadata

Open bddap opened this issue 3 years ago • 3 comments

https://github.com/docknetwork/dock-substrate/blob/441c9128a085a5183addb9cc36eda9c2561281e6/runtime/src/attest.rs#L75 for example needs the line: type Error = Error<T>;

Without these error definitions, extrinsic submission errors are indecipherable by users. Example:

Extrinsic failed submission: [{"Module":{"index":18,"error":1}},{"weight":290004400,"class":"Normal","paysFee":"Yes"}]

bddap avatar Feb 24 '21 23:02 bddap