mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-25 04:45:42 +00:00
impl MakePayment for balances instances (#2055)
This commit is contained in:
BIN
Binary file not shown.
@@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
impl_name: create_runtime_str!("substrate-node"),
|
impl_name: create_runtime_str!("substrate-node"),
|
||||||
authoring_version: 10,
|
authoring_version: 10,
|
||||||
spec_version: 41,
|
spec_version: 41,
|
||||||
impl_version: 41,
|
impl_version: 42,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -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 {
|
fn make_payment(transactor: &T::AccountId, encoded_len: usize) -> Result {
|
||||||
let encoded_len = <T::Balance as As<u64>>::sa(encoded_len as u64);
|
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;
|
let transaction_fee = Self::transaction_base_fee() + Self::transaction_byte_fee() * encoded_len;
|
||||||
|
|||||||
Reference in New Issue
Block a user