From 4a5a2c00e002e03e537aca56778a8a5e86112bab Mon Sep 17 00:00:00 2001 From: Elias Tazartes Date: Fri, 8 Sep 2023 18:29:50 +0900 Subject: [PATCH] feat: adding context for remote vs local sha comparison --- crates/ef-testing/tests/tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 010d94bf..65bb3597 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -31,12 +31,15 @@ fn setup() { } pub fn verify_kakarot_sha() -> Result { + // This is the SHA hash of the latest Kakarot submodule commit, inside Kakarot-RPC let remote_sha = fs::read_to_string("../../.katana/remote_kakarot_sha")?; + // This is your local SHA hash of the Kakarot commit you last pulled, using `make fetch-dump` let local_sha = fs::read_to_string("../../.katana/kakarot_sha")?; + // Helper check to remind you to locally run `make fetch-dump` often if remote_sha != local_sha { return Err(eyre::eyre!(format!( - "Kakarot commit hash mismatch: local: {}, remote: {}", + "Kakarot commit hash mismatch: local: {}, remote (kakarot submodule in kakarot-rpc repository): {}", local_sha, remote_sha ))); }