mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 16:51:02 +00:00
Add multiplier parameter to transaction_payment function (#830)
* transaction_payment_without_multiplier -> transaction_payment * tests * fmt
This commit is contained in:
committed by
Bastian Köcher
parent
c95b1eb970
commit
401d3847d1
@@ -146,9 +146,10 @@ impl messages::ThisChainWithMessageLanes for Rialto {
|
||||
|
||||
fn transaction_payment(transaction: MessageLaneTransaction<Weight>) -> bp_rialto::Balance {
|
||||
// in our testnets, both per-byte fee and weight-to-fee are 1:1
|
||||
messages::transaction_payment_without_multiplier(
|
||||
messages::transaction_payment(
|
||||
bp_rialto::BlockWeights::get().get(DispatchClass::Normal).base_extrinsic,
|
||||
1,
|
||||
FixedU128::zero(),
|
||||
|weight| weight as _,
|
||||
transaction,
|
||||
)
|
||||
@@ -208,9 +209,10 @@ impl messages::BridgedChainWithMessageLanes for Millau {
|
||||
|
||||
fn transaction_payment(transaction: MessageLaneTransaction<Weight>) -> bp_millau::Balance {
|
||||
// in our testnets, both per-byte fee and weight-to-fee are 1:1
|
||||
messages::transaction_payment_without_multiplier(
|
||||
messages::transaction_payment(
|
||||
bp_millau::BlockWeights::get().get(DispatchClass::Normal).base_extrinsic,
|
||||
1,
|
||||
FixedU128::zero(),
|
||||
|weight| weight as _,
|
||||
transaction,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user