Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Aug 13, 2024
1 parent f3526b9 commit cb7e29b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
7 changes: 0 additions & 7 deletions check/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ pub fn build_dylib(cfg: BuildConfig) -> Result<PathBuf> {

let mut cmd = sys::new_command("cargo");

// if !cfg.stable {
// cmd.arg("+nightly");
// }

cmd.arg("build");
cmd.arg("--lib");

Expand Down Expand Up @@ -208,9 +204,6 @@ pub fn extract_toolchain_channel(toolchain_file_path: &PathBuf) -> Result<String
pub fn hash_files(source_file_patterns: Vec<String>, cfg: BuildConfig) -> Result<[u8; 32]> {
let mut keccak = Keccak::v256();
let mut cmd = Command::new("cargo");
// if !cfg.stable {
// cmd.arg("+nightly");
// }
cmd.arg("--version");
let output = cmd
.output()
Expand Down
1 change: 0 additions & 1 deletion check/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ pub async fn verify(cfg: VerifyConfig) -> eyre::Result<()> {
common_cfg: cfg.common_cfg.clone(),
wasm_file: None,
contract_address: None,
no_verify: cfg.no_verify,
};
let _ = check::check(&check_cfg)
.await
Expand Down
7 changes: 2 additions & 5 deletions replay/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async fn replay(args: ReplayArgs) -> Result<()> {
let provider = sys::new_provider(&args.endpoint)?;
let trace = Trace::new(provider, args.tx).await?;

build_so(&args.project, args.stable_rust)?;
build_so(&args.project)?;
let so = find_so(&args.project)?;

// TODO: don't assume the contract is top-level
Expand All @@ -169,12 +169,9 @@ async fn replay(args: ReplayArgs) -> Result<()> {
Ok(())
}

pub fn build_so(path: &Path, stable: bool) -> Result<()> {
pub fn build_so(path: &Path) -> Result<()> {
let mut cargo = sys::new_command("cargo");

if !stable {
// cargo.arg("+nightly");
}
cargo
.current_dir(path)
.arg("build")
Expand Down

0 comments on commit cb7e29b

Please sign in to comment.