diff --git a/runtime/extension/src/lib.rs b/runtime/extension/src/lib.rs index 0b01329e..a8ef9b2c 100644 --- a/runtime/extension/src/lib.rs +++ b/runtime/extension/src/lib.rs @@ -23,7 +23,9 @@ type ContractSchedule = ::Schedule; pub trait Config: frame_system::Config> { + /// Receives parameter byte array from the environment buffer and handles the logic. type StateReadHandler: StateReadHandler; + /// Whitelisting list of runtime calls that can be dispatched. type AllowedDispatchCalls: Contains; } @@ -43,7 +45,7 @@ pub trait StateReadHandler { #[derive(Default)] pub struct PopApiExtension; -/// Extract (version, function_id, pallet_index, call_index) from the payload bytes +/// Extract (version, function_id, pallet_index, call_index) from the payload bytes. fn extract_env(env: &Environment) -> (u8, u8, u8, u8) where E: Ext,