Skip to content

Commit

Permalink
Don't include sideprog.wasm in dep
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Jan 25, 2024
1 parent 8cfb775 commit e256389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion e2e/contracts/check_system/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
fn main() {
println!("cargo:rerun-if-changed=sideprog.wasm");
let hash = sp_core::blake2_256(include_bytes!("./sideprog.wasm"));
#[cfg(feature = "ink-as-dependency")]
let code = b"";
#[cfg(not(feature = "ink-as-dependency"))]
let code = include_bytes!("./sideprog.wasm");
let hash = sp_core::blake2_256(code);
std::fs::write("./sideprog.wasm.hash", hash).unwrap();
}

0 comments on commit e256389

Please sign in to comment.