mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 14:31:02 +00:00
Bump Substrate/Polkadot/Cumulus refs (aka Weights v1.5) (#1597)
* update Substrate + Polkadot + Cumulus refs * Origin -> RuntimeOrigin * weights v1.5 * update refs once again + `cargo test -p pallet-bridge-grandpa` works * started work on `cargo test -p pallet-bridge-messages` * cargo test -p pallet-bridge-relayers * cargo test -p pallet-bridge-parachains * cargo test -p millau-runtime * cargo test -p bridge-runtime-common * cargo test -p rialto-runtime * cargo test -p rialto-parachain-runtime * cargo test -p millau-bridge-node * cargo test -p rialto-bridge-node * cargo test -p rialto-parachain-collator * cargo test -p messages-relay * cargo test -p parachains-relay * cargo test -p substrate-relay * cargo test --all * cargo check -p millau-runtime --locked --features runtime-benchmarks * fix remaining test * fmt * try to allow clippy failure temporarily * Revert "try to allow clippy failure temporarily" This reverts commit d1b6593580f07e0dbeecb7ab0aa92cee98888ed3. * use min_by * Revert "use min_by" This reverts commit 33042f49ed37e8dd0505370289e17f03bf1a56ee. * Revert "Revert "use min_by"" This reverts commit 1d2204f0b14dc81e5650bb574dedb5fa78c7097d. * trigger CI * Revert "trigger CI" This reverts commit 259d91b5606743bba9d043c69f07eac6c8700ef5. * new day, new clippy warning * more clippy issues
This commit is contained in:
committed by
Bastian Köcher
parent
9e1847d12a
commit
a3dc2d2748
@@ -27,11 +27,11 @@ use sp_runtime::{
|
||||
/// if there are multiple relays running and submitting the same information.
|
||||
impl<
|
||||
Call: IsSubType<CallableCallFor<Pallet<T, I>, T>>,
|
||||
T: frame_system::Config<Call = Call> + Config<I>,
|
||||
T: frame_system::Config<RuntimeCall = Call> + Config<I>,
|
||||
I: 'static,
|
||||
> FilterCall<Call> for Pallet<T, I>
|
||||
{
|
||||
fn validate(call: &<T as frame_system::Config>::Call) -> TransactionValidity {
|
||||
fn validate(call: &<T as frame_system::Config>::RuntimeCall) -> TransactionValidity {
|
||||
let bundled_block_number = match call.is_sub_type() {
|
||||
Some(crate::Call::<T, I>::submit_finality_proof { ref finality_target, .. }) =>
|
||||
*finality_target.number(),
|
||||
@@ -63,18 +63,19 @@ impl<
|
||||
mod tests {
|
||||
use super::FilterCall;
|
||||
use crate::{
|
||||
mock::{run_test, test_header, Call, TestNumber, TestRuntime},
|
||||
mock::{run_test, test_header, RuntimeCall, TestNumber, TestRuntime},
|
||||
BestFinalized,
|
||||
};
|
||||
use bp_test_utils::make_default_justification;
|
||||
|
||||
fn validate_block_submit(num: TestNumber) -> bool {
|
||||
crate::Pallet::<TestRuntime>::validate(&Call::Grandpa(
|
||||
crate::Call::<TestRuntime, ()>::submit_finality_proof {
|
||||
finality_target: Box::new(test_header(num)),
|
||||
justification: make_default_justification(&test_header(num)),
|
||||
},
|
||||
))
|
||||
crate::Pallet::<TestRuntime>::validate(&RuntimeCall::Grandpa(crate::Call::<
|
||||
TestRuntime,
|
||||
(),
|
||||
>::submit_finality_proof {
|
||||
finality_target: Box::new(test_header(num)),
|
||||
justification: make_default_justification(&test_header(num)),
|
||||
}))
|
||||
.is_ok()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user