Skip to content

Commit

Permalink
fix: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Aug 7, 2024
1 parent 478c027 commit 5252737
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/extension/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ type ContractSchedule<T> = <T as pallet_contracts::Config>::Schedule;
pub trait Config:
frame_system::Config<RuntimeCall: GetDispatchInfo + Dispatchable<PostInfo = PostDispatchInfo>>
{
/// 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<Self::RuntimeCall>;
}

Expand All @@ -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<T, E>(env: &Environment<E, BufInBufOutState>) -> (u8, u8, u8, u8)
where
E: Ext<T = T>,
Expand Down

0 comments on commit 5252737

Please sign in to comment.