[contracts] Derive useful traits for public types (#14723)

* Types in the pallet

* Primitives
This commit is contained in:
Piotr Mikołajczyk
2023-08-14 11:30:42 +02:00
committed by GitHub
parent adb9f6d71a
commit 90270c91c3
3 changed files with 29 additions and 13 deletions
+11 -1
View File
@@ -346,7 +346,17 @@ pub trait Ext: sealing::Sealed {
}
/// Describes the different functions that can be exported by an [`Executable`].
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[derive(
Copy,
Clone,
PartialEq,
Eq,
sp_core::RuntimeDebug,
codec::Decode,
codec::Encode,
codec::MaxEncodedLen,
scale_info::TypeInfo,
)]
pub enum ExportedFunction {
/// The constructor function which is executed on deployment of a contract.
Constructor,