We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have no idea now to use errors that papi generates...
It's mentioned in codegen part but not alongside other generated APIs, like constants
I see you can import the type, like this:
import { WestendErrors } from "@polkadot-api/descriptors"; // and probably do something like const error: WestendErrors["Preimage"]["NotNoted"] = undefined;
But how do you actually get instances of these errors and match them in runtime?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have no idea now to use errors that papi generates...
It's mentioned in codegen part
but not alongside other generated APIs, like constants
I see you can import the type, like this:
But how do you actually get instances of these errors and match them in runtime?
The text was updated successfully, but these errors were encountered: