difftreelog
fix after rebase
in: master
4 files changed
pallets/balances-adapter/src/common.rsdiffbeforeafterboth45 }45 }464647 fn transfer() -> Weight {47 fn transfer() -> Weight {48 <BalancesWeight<T> as WeightInfo>::transfer()48 <BalancesWeight<T> as WeightInfo>::transfer_allow_death()49 }49 }505051 fn approve() -> Weight {51 fn approve() -> Weight {57 }57 }585859 fn transfer_from() -> Weight {59 fn transfer_from() -> Weight {60 <BalancesWeight<T> as WeightInfo>::transfer()60 <BalancesWeight<T> as WeightInfo>::transfer_allow_death()61 }61 }626263 fn burn_from() -> Weight {63 fn burn_from() -> Weight {pallets/balances-adapter/src/erc.rsdiffbeforeafterboth--- a/pallets/balances-adapter/src/erc.rs
+++ b/pallets/balances-adapter/src/erc.rs
@@ -54,7 +54,7 @@
Ok(total.into())
}
- #[weight(<SelfWeightOf<T>>::transfer())]
+ #[weight(<SelfWeightOf<T>>::transfer_allow_death())]
fn transfer(&mut self, caller: Caller, to: Address, amount: U256) -> Result<bool> {
let caller = T::CrossAccountId::from_eth(caller);
let to = T::CrossAccountId::from_eth(to);
@@ -68,7 +68,7 @@
Ok(true)
}
- #[weight(<SelfWeightOf<T>>::transfer())]
+ #[weight(<SelfWeightOf<T>>::transfer_allow_death())]
fn transfer_from(
&mut self,
caller: Caller,
@@ -102,7 +102,7 @@
Ok(balance.into())
}
- #[weight(<SelfWeightOf<T>>::transfer())]
+ #[weight(<SelfWeightOf<T>>::transfer_allow_death())]
fn transfer_cross(&mut self, caller: Caller, to: CrossAddress, amount: U256) -> Result<bool> {
let caller = T::CrossAccountId::from_eth(caller);
let to = to.into_sub_cross_account::<T>()?;
@@ -117,7 +117,7 @@
Ok(true)
}
- #[weight(<SelfWeightOf<T>>::transfer())]
+ #[weight(<SelfWeightOf<T>>::transfer_allow_death())]
fn transfer_from_cross(
&mut self,
caller: Caller,
pallets/balances-adapter/src/lib.rsdiffbeforeafterboth--- a/pallets/balances-adapter/src/lib.rs
+++ b/pallets/balances-adapter/src/lib.rs
@@ -153,7 +153,7 @@
};
Ok(PostDispatchInfo {
- actual_weight: Some(<SelfWeightOf<T>>::transfer()),
+ actual_weight: Some(<SelfWeightOf<T>>::transfer_allow_death()),
pays_fee: Pays::Yes,
})
}
runtime/common/config/pallets/app_promotion.rsdiffbeforeafterboth--- a/runtime/common/config/pallets/app_promotion.rs
+++ b/runtime/common/config/pallets/app_promotion.rs
@@ -31,6 +31,7 @@
pub const RecalculationInterval: BlockNumber = RELAY_DAYS;
pub const PendingInterval: BlockNumber = 7 * DAYS;
pub const Nominal: Balance = UNIQUE;
+ pub const HoldAndFreezeIdentifier: [u8; 16] = *b"appstakeappstake";
pub IntervalIncome: Perbill = Perbill::from_rational(5u32, 10_000);
}
@@ -47,4 +48,5 @@
type Nominal = Nominal;
type IntervalIncome = IntervalIncome;
type RuntimeEvent = RuntimeEvent;
+ type FreezeIdentifier = HoldAndFreezeIdentifier;
}