starknet-rs icon indicating copy to clipboard operation
starknet-rs copied to clipboard

Add Error Handling for Invalid Transaction Validation

Open jbcaron opened this issue 1 year ago • 1 comments

This PR add the error code StarknetErrorCode.VALIDATE_FAILURE from sequencer API.

jbcaron avatar Feb 28 '24 11:02 jbcaron

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.

xJonathanLEI avatar Mar 27 '24 17:03 xJonathanLEI