Skip to content

Commit

Permalink
Revert to MessageReceived
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Nov 6, 2023
1 parent b5911d9 commit ae15055
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions parachain/pallets/inbound-queue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ pub mod pallet {
#[pallet::event]
#[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T> {
/// Xcm message sent to dest chain
MessageSent {
/// A message was received from Ethereum
MessageReceived {
/// The destination parachain
dest: ParaId,
/// The message nonce
Expand Down Expand Up @@ -252,7 +252,7 @@ pub mod pallet {
// Attempt to send XCM to a dest parachain
let xcm_hash = Self::send_xcm(xcm, envelope.dest)?;

Self::deposit_event(Event::MessageSent {
Self::deposit_event(Event::MessageReceived {
dest: envelope.dest,
nonce: envelope.nonce,
xcm_hash,
Expand Down
2 changes: 1 addition & 1 deletion parachain/pallets/inbound-queue/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ fn test_submit_happy_path() {
},
};
assert_ok!(InboundQueue::submit(origin.clone(), message.clone()));
expect_events(vec![InboundQueueEvent::MessageSent {
expect_events(vec![InboundQueueEvent::MessageReceived {
dest: ASSET_HUB_PARAID.into(),
nonce: 1,
xcm_hash: XCM_HASH,
Expand Down

0 comments on commit ae15055

Please sign in to comment.