impl MakePayment for balances instances (#2055)

This commit is contained in:
thiolliere
2019-03-25 15:19:15 +01:00
committed by GitHub
parent 4fe70ee639
commit 620e8dc8b9
4 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("substrate-node"),
authoring_version: 10,
spec_version: 41,
impl_version: 41,
impl_version: 42,
apis: RUNTIME_API_VERSIONS,
};
+1 -1
View File
@@ -820,7 +820,7 @@ where
}
}
impl<T: Trait> MakePayment<T::AccountId> for Module<T> {
impl<T: Trait<I>, I: Instance> MakePayment<T::AccountId> for Module<T, I> {
fn make_payment(transactor: &T::AccountId, encoded_len: usize) -> Result {
let encoded_len = <T::Balance as As<u64>>::sa(encoded_len as u64);
let transaction_fee = Self::transaction_base_fee() + Self::transaction_byte_fee() * encoded_len;