diff --git a/crates/extrinsics/src/events.rs b/crates/extrinsics/src/events.rs index 9816f2d07..b188c5e11 100644 --- a/crates/extrinsics/src/events.rs +++ b/crates/extrinsics/src/events.rs @@ -102,33 +102,6 @@ where const EVENT: &'static str = "Instantiated"; } -/// An event triggered by either the `instantiate_with_code` or the `upload_code` call. -#[derive( - Debug, - scale::Decode, - scale::Encode, - scale_decode::DecodeAsType, - scale_encode::EncodeAsType, -)] -#[decode_as_type(crate_path = "subxt::ext::scale_decode")] -#[encode_as_type(crate_path = "subxt::ext::scale_encode")] -pub struct CodeStored { - /// Hash under which the contract code was stored. - pub code_hash: H256, - /// Deposit held for the storing contract code on-chain. - pub deposit_held: Balance, - /// Address of the uploader. - pub uploader: H160, -} - -impl StaticEvent for CodeStored -where - Balance: IntoVisitor, -{ - const PALLET: &'static str = "Revive"; - const EVENT: &'static str = "CodeStored"; -} - /// An event triggered by the `remove_code` call. #[derive( Debug, diff --git a/crates/extrinsics/src/integration_tests.rs b/crates/extrinsics/src/integration_tests.rs index 201731f0f..713c276cf 100644 --- a/crates/extrinsics/src/integration_tests.rs +++ b/crates/extrinsics/src/integration_tests.rs @@ -660,7 +660,7 @@ async fn api_build_upload_remove() { .await .unwrap(); let upload_result = upload.upload_code().await; - let upload_result = upload_result.unwrap_or_else(|err| { + let _upload_result = upload_result.unwrap_or_else(|err| { panic!("upload code failed with {:?}", err); }); let code_hash_h256 = upload.code().code_hash(); // todo @@ -887,7 +887,6 @@ async fn adhere_to_limits_during_build_upload_instantiate_call() { .output() .expect("failed to execute process"); let stderr = str::from_utf8(&output.stderr).unwrap(); - let stdout = str::from_utf8(&output.stderr).unwrap(); assert!( !output.status.success(), "upload code succeeded, but should have failed: {stderr}" diff --git a/crates/extrinsics/src/upload.rs b/crates/extrinsics/src/upload.rs index 067031e8d..6ce8b3a67 100644 --- a/crates/extrinsics/src/upload.rs +++ b/crates/extrinsics/src/upload.rs @@ -15,7 +15,6 @@ // along with cargo-contract. If not, see . use super::{ - events::CodeStored, pallet_revive_primitives::CodeUploadResult, state_call, submit_extrinsic,