Skip to content

Commit 3f86474

Browse files
committed
Make clippy happy
1 parent f6d218f commit 3f86474

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/extrinsics/src/integration_tests.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ async fn build_upload_remove() {
321321
.output()
322322
.expect("failed to execute process");
323323
let stderr = str::from_utf8(&output.stderr).unwrap();
324-
let stdout = str::from_utf8(&output.stdout).unwrap();
325324
assert!(output.status.success(), "remove failed: {stderr}");
326325

327326
// prevent the node_process from being dropped and killed
@@ -666,12 +665,11 @@ async fn api_build_upload_remove() {
666665
let _upload_result = upload_result.unwrap_or_else(|err| {
667666
panic!("upload code failed with {:?}", err);
668667
});
669-
let code_hash_h256 = upload.code().code_hash(); // todo
670668

671669
// remove the contract
672670
let remove: RemoveExec<DefaultConfig, DefaultEnvironment, Keypair> =
673671
RemoveCommandBuilder::new(opts.clone())
674-
.code_hash(Some(H256::from_slice(&code_hash_h256)))
672+
.code_hash(Some(H256::from_slice(&upload.code().code_hash())))
675673
.done()
676674
.await
677675
.unwrap();

0 commit comments

Comments
 (0)