Skip to content

Commit

Permalink
feat: adding context for remote vs local sha comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikix committed Sep 8, 2023
1 parent db12db4 commit 4a5a2c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/ef-testing/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ fn setup() {
}

pub fn verify_kakarot_sha() -> Result<String, eyre::Error> {
// 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
)));
}
Expand Down

0 comments on commit 4a5a2c0

Please sign in to comment.