Skip to content
Snippets Groups Projects
Commit 620e8dc8 authored by thiolliere's avatar thiolliere Committed by GitHub
Browse files

impl MakePayment for balances instances (#2055)

parent 4fe70ee6
No related merge requests found
......@@ -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,
};
......
No preview for this file type
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment