Add Event to Pallet Asset-Tx-Payment (#11690)

* Add Event to Pallet Asset-Tx-Payment

* add asset_id into the Event

Co-authored-by: parity-processbot <>
This commit is contained in:
ZhiYongandparity-processbot authored and GitHub committed 2022-07-29 17:59:03 +00:00
1 parent 1c6867c6ed
commit 3a4ad68d09
3 files changed
+29 -4

No files matched your search

@@ -51,7 +51,7 @@ frame_support::construct_runtime!(
TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event<T>},
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>},
Authorship: pallet_authorship::{Pallet, Call, Storage},
AssetTxPayment: pallet_asset_tx_payment::{Pallet},
AssetTxPayment: pallet_asset_tx_payment::{Pallet, Event<T>},
}
);
@@ -198,6 +198,7 @@ impl HandleCredit<AccountId, Assets> for CreditToBlockAuthor {
}
impl Config for Runtime {
type Event = Event;
type Fungibles = Assets;
type OnChargeAssetTransaction = FungiblesAdapter<
pallet_assets::BalanceToAssetBalance<Balances, Runtime, ConvertInto>,
@@ -663,7 +664,7 @@ fn post_dispatch_fee_is_zero_if_pre_dispatch_fee_is_zero() {
.unwrap();
// `Pays::No` implies no pre-dispatch fees
assert_eq!(Assets::balance(asset_id, caller), balance);
let (_tip, _who, initial_payment) = &pre;
let (_tip, _who, initial_payment, _asset_id) = &pre;
let not_paying = match initial_payment {
&InitialPayment::Nothing => true,
_ => false,