From 1cb548c0c310a278adc7a10ab17a780e169aadee Mon Sep 17 00:00:00 2001 From: Wenfeng Wang Date: Thu, 20 Jul 2023 14:48:47 +0000 Subject: [PATCH] fix hardcode proofSize --- pallets/subbridge/src/xcmbridge.rs | 3 ++- pallets/subbridge/src/xtransfer.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pallets/subbridge/src/xcmbridge.rs b/pallets/subbridge/src/xcmbridge.rs index d04c4ff7..0d337ea4 100644 --- a/pallets/subbridge/src/xcmbridge.rs +++ b/pallets/subbridge/src/xcmbridge.rs @@ -375,7 +375,8 @@ pub mod pallet { origin: origin_location.clone(), dest_location, beneficiary, - dest_weight: max_weight.unwrap_or(XCMWeight::from_parts(6_000_000_000u64, 0)), + dest_weight: max_weight + .unwrap_or(XCMWeight::from_parts(6_000_000_000u64, 2_000_000u64)), _marker: PhantomData, }; let mut msg = xcm_session.message()?; diff --git a/pallets/subbridge/src/xtransfer.rs b/pallets/subbridge/src/xtransfer.rs index 41e04710..1594d876 100644 --- a/pallets/subbridge/src/xtransfer.rs +++ b/pallets/subbridge/src/xtransfer.rs @@ -156,7 +156,7 @@ pub mod pallet { temporary_account.into(), what.clone(), who.clone(), - Some(XCMWeight::from_parts(6_000_000_000u64, 0)), + Some(XCMWeight::from_parts(6_000_000_000u64, 2_000_000u64)), )?; Self::deposit_event(Event::Forwarded { what, who, memo }); // TODO: Should we support forward generic message in the future?