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

Add state dump to compare Native and VM #58

Closed JulianGCalderon closed 2 months ago

JulianGCalderon commented 2 months ago

This PR adds a new feature state_dump that dumps transaction execution info to a file, so that we can compare Native with VM for correctness.

It also adds scripts for analyzing the dumped information.

JulianGCalderon commented 2 months ago

There might be a way to have it set to an absolute path relative to the repository (by traversing the directory structure until you find a Cargo.toml, for example), but I don't see a reason to do it. By doing that, you eliminate the possibility to compile the binary and run it elsewhere. I think the current behavior is more intuitive.