From 92e505629ec147942bb0a918cd524ab1270b3afb Mon Sep 17 00:00:00 2001 From: Adrian Catangiu Date: Thu, 1 Jun 2023 16:47:21 +0300 Subject: [PATCH] backport cumulus changes to bridges-master (#2172) * backport cumulus changes to bridges-master * bump substrate, polkadot & cumulus * backport cumulus changes * make it build * fix runtimes: only numeric literals are supported by sp_version::runtime_version macro --------- Signed-off-by: acatangiu --- bridges/modules/grandpa/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridges/modules/grandpa/src/lib.rs b/bridges/modules/grandpa/src/lib.rs index 4569fc2b19fd..4d4f3bfb7692 100644 --- a/bridges/modules/grandpa/src/lib.rs +++ b/bridges/modules/grandpa/src/lib.rs @@ -44,7 +44,6 @@ use bp_header_chain::{ }; use bp_runtime::{BlockNumberOf, HashOf, HasherOf, HeaderId, HeaderOf, OwnedBridgeModule}; use frame_support::{dispatch::PostDispatchInfo, ensure, DefaultNoBound}; -use sp_consensus_grandpa::SetId; use sp_runtime::{ traits::{Header as HeaderT, Zero}, SaturatedConversion, @@ -527,7 +526,7 @@ pub mod pallet { fn may_refund_call_fee, I: 'static>( finality_target: &BridgedHeader, justification: &GrandpaJustification>, - current_set_id: SetId, + current_set_id: sp_consensus_grandpa::SetId, improved_by: BridgedBlockNumber, ) -> bool { // if we have refunded too much at this block => not refunding