paritytech / try-runtime-cli

Substrate's programatic testing framework.
https://paritytech.github.io/try-runtime-cli/try_runtime
GNU General Public License v3.0
14 stars 13 forks source link

Add flag to see storage diff if idemptotent check fails #78

Closed tmpolaczyk closed 8 months ago

tmpolaczyk commented 8 months ago

When the idempotent migration check fails, users see this unhelpful error message:

❌ Migrations are not idempotent. Selectively remove migrations from Executive until you find the culprit.

This PR implements a flag to enable printing the differences in storage. It is disabled by default because users can ignore the "idempotent" warning if they want to. If the flag is disabled there is a log that suggests enabling it, improving the old message.

Captura desde 2024-02-20 13-59-48