bridge: fix weight calculation
@@ -313,7 +313,10 @@ pub mod pallet {
/// # <weight>
/// - weight of proposed call, regardless of whether execution is performed
/// # </weight>
- #[pallet::weight((call.get_dispatch_info().weight + 195_000_000, call.get_dispatch_info().class, Pays::Yes))]
+ #[pallet::weight({
+ let dispatch_info = call.get_dispatch_info();
+ (dispatch_info.weight + 195_000_000, dispatch_info.class, Pays::Yes)
+ })]
pub fn acknowledge_proposal(
origin: OriginFor<T>,
nonce: DepositNonce,
@@ -370,7 +373,10 @@ pub mod pallet {
/// # <weight>
/// - weight of proposed call, regardless of whether execution is performed
/// # </weight>
- #[pallet::weight((prop.get_dispatch_info().weight + 195_000_000, prop.get_dispatch_info().class, Pays::Yes))]
+ #[pallet::weight({
+ let dispatch_info = prop.get_dispatch_info();
+ (dispatch_info.weight + 195_000_000, dispatch_info.class, Pays::Yes)
+ })]
pub fn eval_vote_state(
origin: OriginFor<T>,
nonce: DepositNonce,
