Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(e2e): deploy contracts without Solidity constructor when not needed #295

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions examples/ecdsa/src/constructor.sol

This file was deleted.

8 changes: 7 additions & 1 deletion lib/e2e/src/deploy.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::path::Path;
use alloy::{rpc::types::TransactionReceipt, sol_types::SolConstructor};
use koba::config::Deploy;

Expand Down Expand Up @@ -45,11 +46,16 @@ 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,
},
Expand Down
Loading