Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
refactor: Simplify dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
code0xff committed Sep 15, 2024
1 parent 941e550 commit 591e244
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frame/cosmos/x/bank/src/msgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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() },
Expand Down

0 comments on commit 591e244

Please sign in to comment.