reilabs / starknet-replay

CLI tool to replay Starknet transactions and profile libfuncs usage.
0 stars 0 forks source link

Panic when replaying block 632917 #18

Closed Eagle941 closed 1 month ago

Eagle941 commented 1 month ago

The error reported is TransactionExecutionError::ExecutionError and the nonce address expected vs reported has a difference of 1.

When running the example re-execute.rs in pathfinder, this panic doesn't occur.

Eagle941 commented 1 month ago

This was caused by the function extract_libfuncs_weight returning an error when the transaction in trace is not of type INVOKE. It is expected that the list of program counters (visited_pcs) is None, therefore I have replaced the return with an empty list. Merged in #15