It would be really nice if we could pattern match on returned dispatch errors. E.g. something like
match error {
SubxtRuntimeError::Module(MyModule::MyError) => {...}
_ => ...,
}
Currently we have to manually check the PalletError.pallet and PalletError.error strings, and these string constants are not exposed in the generated code.
It would be really nice if we could pattern match on returned dispatch errors. E.g. something like
Currently we have to manually check the
PalletError.palletandPalletError.errorstrings, and these string constants are not exposed in the generated code.