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
Stargate client broadcastTx method only provides text on error.
broadcastTx
throw new Error( `Broadcasting transaction failed with code ${broadcasted.code} (codespace: ${broadcasted.codeSpace}). Log: ${broadcasted.log}`, );
It would be useful to use some custom error class to include the code like
export class BroadcastTxError extends Error { constructor(public readonly code: number, message?: string) { super(message); } } throw new BroadcastTxError( broadcasted.code `Broadcasting transaction failed with code ${broadcasted.code} (codespace: ${broadcasted.codeSpace}). Log: ${broadcasted.log}`, );
The text was updated successfully, but these errors were encountered:
Good idea, thanks. See #1235
Sorry, something went wrong.
Shipped as part of CosmJS 0.29.0
Successfully merging a pull request may close this issue.
Stargate client
broadcastTx
method only provides text on error.It would be useful to use some custom error class to include the code like
The text was updated successfully, but these errors were encountered: