mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-04 16:27:07 +00:00
[Fix] Deposit weight hardcoded to pre-bench value (#1651)
* [Fix] Deposit weight hardcoded to pre-bench value * lint
This commit is contained in:
1 parent
d53444ef81
commit
a1f7b74d8a
3 files changed
+12
-3
No files matched your search
@@ -117,7 +117,10 @@ impl<Call> XcmWeightInfo<Call> for StatemineXcmWeight<Call> {
|
|||||||
_max_assets: &u32,
|
_max_assets: &u32,
|
||||||
_dest: &MultiLocation,
|
_dest: &MultiLocation,
|
||||||
) -> XCMWeight {
|
) -> XCMWeight {
|
||||||
assets.weigh_multi_assets(XcmFungibleWeight::<Runtime>::deposit_asset())
|
// Hardcoded till the XCM pallet is fixed
|
||||||
|
let hardcoded_weight = Weight::from_ref_time(1_000_000_000 as u64).ref_time();
|
||||||
|
let weight = assets.weigh_multi_assets(XcmFungibleWeight::<Runtime>::deposit_asset());
|
||||||
|
cmp::min(hardcoded_weight, weight)
|
||||||
}
|
}
|
||||||
fn deposit_reserve_asset(
|
fn deposit_reserve_asset(
|
||||||
assets: &MultiAssetFilter,
|
assets: &MultiAssetFilter,
|
||||||
|
|||||||
@@ -117,7 +117,10 @@ impl<Call> XcmWeightInfo<Call> for StatemintXcmWeight<Call> {
|
|||||||
_max_assets: &u32,
|
_max_assets: &u32,
|
||||||
_dest: &MultiLocation,
|
_dest: &MultiLocation,
|
||||||
) -> XCMWeight {
|
) -> XCMWeight {
|
||||||
assets.weigh_multi_assets(XcmFungibleWeight::<Runtime>::deposit_asset())
|
// Hardcoded till the XCM pallet is fixed
|
||||||
|
let hardcoded_weight = Weight::from_ref_time(1_000_000_000 as u64).ref_time();
|
||||||
|
let weight = assets.weigh_multi_assets(XcmFungibleWeight::<Runtime>::deposit_asset());
|
||||||
|
cmp::min(hardcoded_weight, weight)
|
||||||
}
|
}
|
||||||
fn deposit_reserve_asset(
|
fn deposit_reserve_asset(
|
||||||
assets: &MultiAssetFilter,
|
assets: &MultiAssetFilter,
|
||||||
|
|||||||
@@ -117,7 +117,10 @@ impl<Call> XcmWeightInfo<Call> for WestmintXcmWeight<Call> {
|
|||||||
_max_assets: &u32,
|
_max_assets: &u32,
|
||||||
_dest: &MultiLocation,
|
_dest: &MultiLocation,
|
||||||
) -> XCMWeight {
|
) -> XCMWeight {
|
||||||
assets.weigh_multi_assets(XcmFungibleWeight::<Runtime>::deposit_asset())
|
// Hardcoded till the XCM pallet is fixed
|
||||||
|
let hardcoded_weight = Weight::from_ref_time(1_000_000_000 as u64).ref_time();
|
||||||
|
let weight = assets.weigh_multi_assets(XcmFungibleWeight::<Runtime>::deposit_asset());
|
||||||
|
cmp::min(hardcoded_weight, weight)
|
||||||
}
|
}
|
||||||
fn deposit_reserve_asset(
|
fn deposit_reserve_asset(
|
||||||
assets: &MultiAssetFilter,
|
assets: &MultiAssetFilter,
|
||||||
|
|||||||
Reference in new issue
Block a user