starknet-rs
starknet-rs copied to clipboard
Add Error Handling for Invalid Transaction Validation
This PR add the error code StarknetErrorCode.VALIDATE_FAILURE from sequencer API.
Thanks for the PR. However, starknet-core/src/types/codegen.rs is for RPC types, which is strictly derived from the specification and must not be manually edited.
The RPC error type already contains a ValidationFailure variant, which you can use when converting from sequencer error to RPC error.