lambdaclass / starknet-replay

Provides a way of reading a real Starknet State, so you can re-execute an existing transaction in any of the Starknet networks in an easy way
Apache License 2.0
6 stars 1 forks source link

Remove unwrap in transaction receipt rpc call #79

Closed JulianGCalderon closed 1 month ago

JulianGCalderon commented 1 month ago

Getting the transaction receipt can fail. If it fails, an error message is logged and the execution continues. If it doesn't failed, the transaction result is compare to rpc, as usual.

To do this, I moved all the compare logic to a new function compare_execution and only calls it if the receipt can be retreived.

Depends on #77