From 591e244a93a5ea535211ece1d69b22934c490471 Mon Sep 17 00:00:00 2001 From: code0xff Date: Sun, 15 Sep 2024 21:22:33 +0900 Subject: [PATCH] refactor: Simplify dependency --- frame/cosmos/x/bank/src/msgs.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frame/cosmos/x/bank/src/msgs.rs b/frame/cosmos/x/bank/src/msgs.rs index 368d534..8f82f17 100644 --- a/frame/cosmos/x/bank/src/msgs.rs +++ b/frame/cosmos/x/bank/src/msgs.rs @@ -30,7 +30,10 @@ use pallet_cosmos_types::{ coin::amount_to_string, context, errors::{CosmosError, RootError}, - events::{traits::EventManager, EventAttribute, ATTRIBUTE_KEY_AMOUNT, ATTRIBUTE_KEY_SENDER}, + events::{ + traits::EventManager, CosmosEvent, EventAttribute, ATTRIBUTE_KEY_AMOUNT, + ATTRIBUTE_KEY_SENDER, + }, gas::traits::GasMeter, }; use pallet_cosmos_x_bank_types::events::{ATTRIBUTE_KEY_RECIPIENT, EVENT_TYPE_TRANSFER}; @@ -114,7 +117,7 @@ where } } - let msg_event = pallet_cosmos_types::events::CosmosEvent { + let msg_event = CosmosEvent { r#type: EVENT_TYPE_TRANSFER.into(), attributes: vec![ EventAttribute { key: ATTRIBUTE_KEY_SENDER.into(), value: from_address.into() },