diff --git a/examples/ecdsa/src/constructor.sol b/examples/ecdsa/src/constructor.sol deleted file mode 100644 index d10ca026..00000000 --- a/examples/ecdsa/src/constructor.sol +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.21; - -contract ECDSAExample { - constructor() {} -} diff --git a/lib/e2e/src/deploy.rs b/lib/e2e/src/deploy.rs index a307472e..e65aef6e 100644 --- a/lib/e2e/src/deploy.rs +++ b/lib/e2e/src/deploy.rs @@ -1,3 +1,5 @@ +use std::path::Path; + use alloy::{rpc::types::TransactionReceipt, sol_types::SolConstructor}; use koba::config::Deploy; @@ -45,11 +47,13 @@ impl Deployer { let pkg = Crate::new()?; let wasm_path = pkg.wasm; let sol_path = pkg.manifest_dir.join("src/constructor.sol"); + let sol = + if Path::new(&sol_path).exists() { Some(sol_path) } else { None }; let config = Deploy { generate_config: koba::config::Generate { wasm: wasm_path.clone(), - sol: Some(sol_path), + sol, args: self.ctr_args, legacy: false, },