Skip to content

Commit

Permalink
run 'forge build' before trying to call get_bytecode in test
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Oct 1, 2024
1 parent c3e8a96 commit 76e5782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testfile/src/default_templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 76e5782

Please sign in to comment.