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

* Types in the pallet

* Primitives
This commit is contained in:
Piotr Mikołajczyk authored and GitHub committed 2023-08-14 09:30:42 +00:00
1 parent adb9f6d71a
commit 90270c91c3
3 files changed
+29 -13

No files matched your search

+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,