Skip to content

Dynamic DispatchError::Module details #443

@ascjones

Description

@ascjones

#394 removes the lookup for error details from metadata at runtime, instead using the static metadata.

This will only work if the configuration of the target runtime modules is identical to that of the compile time metadata. So for tools which target a single pallet that might be present across many versions of many chains (e.g. cargo-contract, or xcm-cli) then the error resolution might not work.

This was one of the original design goals for this library, and indeed the resolution of indices for constructing extrinsics and decoding events is still dynamic. So there should also be a similar mechanism for resolving runtime error details.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions