Skip to content

Commit

Permalink
usage in some other pallets
Browse files Browse the repository at this point in the history
  • Loading branch information
gui1117 committed Nov 1, 2024
1 parent 644818a commit b572ce0
Show file tree
Hide file tree
Showing 25 changed files with 1,331 additions and 417 deletions.
22 changes: 22 additions & 0 deletions polkadot/runtime/common/src/assigned_slots/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,28 @@ mod tests {
}
}

impl<C> frame_system::offchain::CreateTransaction<C> for Test
where
RuntimeCall: From<C>,
{
type Extension = ();
fn create_transaction(
call: <Self as frame_system::offchain::CreateTransactionBase<C>>::RuntimeCall,
extension: Self::Extension,
) -> Self::Extrinsic {
UncheckedExtrinsic::new_transaction(call, extension)
}
}

impl<C> frame_system::offchain::CreateAuthorizedTransaction<C> for Test
where
RuntimeCall: From<C>,
{
fn create_extension() -> Self::Extension {
()
}
}

#[derive_impl(frame_system::config_preludes::TestDefaultConfig)]
impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
Expand Down
Loading

0 comments on commit b572ce0

Please sign in to comment.