difftreelog
Set XCM incoming transaction fee amount to 0.
in: master
2 files changed
pallets/foreing-assets/src/lib.rsdiffbeforeafterboth486 fn buy_weight(&mut self, weight: Weight, payment: Assets) -> Result<Assets, XcmError> {486 fn buy_weight(&mut self, weight: Weight, payment: Assets) -> Result<Assets, XcmError> {487 log::trace!(target: "fassets::weight", "buy_weight weight: {:?}, payment: {:?}", weight, payment);487 log::trace!(target: "fassets::weight", "buy_weight weight: {:?}, payment: {:?}", weight, payment);488488489 let amount = WeightToFee::weight_to_fee(&weight);489 let amount: Currency::Balance = (0 as u32).into();490 let u128_amount: u128 = amount.try_into().map_err(|_| XcmError::Overflow)?;490 let u128_amount: u128 = amount.try_into().map_err(|_| XcmError::Overflow)?;491491492 let asset_id = payment492 let asset_id = paymentruntime/common/config/xcm.rsdiffbeforeafterboth188 }188 }189189190 fn buy_weight(&mut self, weight: Weight, payment: Assets) -> Result<Assets, XcmError> {190 fn buy_weight(&mut self, weight: Weight, payment: Assets) -> Result<Assets, XcmError> {191 let amount = WeightToFee::weight_to_fee(&weight);191 let amount: Currency::Balance = (0 as u32).into();192 //let amount = WeightToFee::weight_to_fee(&weight);192 let u128_amount: u128 = amount.try_into().map_err(|_| XcmError::Overflow)?;193 let u128_amount: u128 = amount.try_into().map_err(|_| XcmError::Overflow)?;193194194 // location to this parachain through relay chain195 // location to this parachain through relay chain