Skip to content

Commit d836f78

Browse files
committed
tests: Remove staleness check for compiled contracts
Git doesn't preserve mtimes, and this check just checks whether the source or the compiled contract was checked out first.
1 parent f145736 commit d836f78

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

tests/src/contract.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,7 @@ impl Contract {
7575
}
7676

7777
fn code_and_abi(name: &str) -> anyhow::Result<(String, Vec<u8>)> {
78-
let src = TestFile::new(&format!("contracts/src/{}.sol", name));
7978
let bin = TestFile::new(&format!("contracts/out/{}.sol/{}.json", name, name));
80-
if src.newer(&bin) {
81-
println!(
82-
"The source {} is newer than the compiled contract {}. Please recompile.",
83-
src, bin
84-
);
85-
}
8679

8780
let json: Value = serde_json::from_reader(bin.reader()?).unwrap();
8881
let abi = serde_json::to_string(&json["abi"]).unwrap();

0 commit comments

Comments
 (0)