Skip to content

Commit

Permalink
Remove old InstructionFailed event (#1744)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueNogara authored Oct 22, 2024
1 parent da30d1b commit 3c204de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions pallets/common/src/traits/settlement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ decl_event!(
VenuesBlocked(IdentityId, AssetId, Vec<VenueId>),
/// Execution of a leg failed (did, instruction_id, leg_id)
LegFailedExecution(IdentityId, InstructionId, LegId),
/// Instruction failed execution (did, instruction_id)
InstructionFailed(IdentityId, InstructionId),
/// Instruction executed successfully(did, instruction_id)
InstructionExecuted(IdentityId, InstructionId),
/// Venue not part of the token's allow list (did, AssetId, venue_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,6 @@ fn execute_instruction_storage_rollback() {
Error::<TestStorage>::FailedToReleaseLockOrTransferAssets.into()
))
);
assert_eq!(
system_events.pop().unwrap().event,
crate::storage::EventTest::Settlement(RawEvent::InstructionFailed(
SettlementDID.as_id(),
instruction_id
))
);
assert_eq!(
system_events.pop().unwrap().event,
crate::storage::EventTest::Settlement(RawEvent::LegFailedExecution(
Expand Down
1 change: 0 additions & 1 deletion pallets/settlement/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,6 @@ impl<T: Config> Module<T> {
instruction_id,
failed_leg_id,
));
Self::deposit_event(RawEvent::InstructionFailed(caller_did, instruction_id));
}

tx_result
Expand Down

0 comments on commit 3c204de

Please sign in to comment.