Skip to content

Commit

Permalink
Correction after commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDutSik committed Feb 23, 2025
1 parent 276a03f commit 945287a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
5 changes: 1 addition & 4 deletions linera-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ version.workspace = true

[features]
wasmer = ["linera-execution/wasmer", "linera-storage/wasmer"]
wasmtime = [
"linera-execution/wasmtime",
"linera-storage/wasmtime",
]
wasmtime = ["linera-execution/wasmtime", "linera-storage/wasmtime"]
test = [
"anyhow",
"linera-base/test",
Expand Down
13 changes: 1 addition & 12 deletions linera-execution/src/wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,18 +346,7 @@ pub mod test {
wasm_runtime: impl Into<Option<WasmRuntime>>,
) -> Result<(WasmContractModule, WasmServiceModule), anyhow::Error> {
let (contract_path, service_path) = get_example_bytecode_paths(name)?;
let wasm_runtime = match wasm_runtime.into() {
Some(wasm_runtime) => wasm_runtime,
None => {
cfg_if::cfg_if! {
if #[cfg(with_wasmer)] {
WasmRuntime::Wasmer
} else {
WasmRuntime::Wasmtime
}
}
}
};
let wasm_runtime = wasm_runtime.into().unwrap_or_default();
let contract = WasmContractModule::from_file(&contract_path, wasm_runtime).await?;
let service = WasmServiceModule::from_file(&service_path, wasm_runtime).await?;
Ok((contract, service))
Expand Down
1 change: 0 additions & 1 deletion linera-service/src/node_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ where
}

/// Creates a new application.
#[allow(clippy::too_many_arguments)]
async fn create_application(
&self,
chain_id: ChainId,
Expand Down

0 comments on commit 945287a

Please sign in to comment.