diff --git a/core/src/message/context.rs b/core/src/message/context.rs index 3312b698dd0..dbcb36de0d3 100644 --- a/core/src/message/context.rs +++ b/core/src/message/context.rs @@ -182,7 +182,6 @@ pub struct ContextStore { outgoing: BTreeMap>, reply: Option, initialized: BTreeSet, - awaken: BTreeSet, reply_sent: bool, reservation_nonce: ReservationNonce, system_reservation: Option, @@ -484,13 +483,9 @@ impl MessageContext { /// Wake message by it's message id. pub fn wake(&mut self, waker_id: MessageId, delay: u32) -> Result<(), Error> { - if self.store.awaken.insert(waker_id) { - self.outcome.awakening.push((waker_id, delay)); + self.outcome.awakening.push((waker_id, delay)); - Ok(()) - } else { - Err(Error::DuplicateWaking) - } + Ok(()) } /// Create deposit to handle future reply on message id was sent. diff --git a/pallets/gear/src/tests.rs b/pallets/gear/src/tests.rs index 5ccae9dc5f5..2801dd39043 100644 --- a/pallets/gear/src/tests.rs +++ b/pallets/gear/src/tests.rs @@ -947,9 +947,7 @@ fn reply_deposit_gstd_async() { }); } -// TODO (#2763): resolve panic caused by "duplicate" wake in message A #[test] -#[should_panic] fn pseudo_duplicate_wake() { use demo_constructor::{Calls, Scheme};