From 76e57821bc531699574299c885eedbfed13f42f5 Mon Sep 17 00:00:00 2001 From: zeroXbrock <2791467+zeroXbrock@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:55:47 -0700 Subject: [PATCH] run 'forge build' before trying to call get_bytecode in test --- testfile/src/default_templates.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/testfile/src/default_templates.rs b/testfile/src/default_templates.rs index 9f40973..84c36f6 100644 --- a/testfile/src/default_templates.rs +++ b/testfile/src/default_templates.rs @@ -80,6 +80,7 @@ mod tests { #[test] fn test_get_bytecode() { + run_forge_build("./contracts").unwrap(); let bytecode = get_bytecode("./contracts/out", "SpamMe").unwrap(); assert_eq!(bytecode.len(), 2600); assert!(bytecode.starts_with("0x6080"));