Skip to content

Commit

Permalink
Continue to return error for execute_manual_instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueNogara committed Jan 18, 2023
1 parent 8bb2cba commit 6fd9184
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pallets/settlement/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,10 +1042,9 @@ decl_module! {
ensure!(InstructionLegs::iter_prefix(id).count() as u32 <= legs_count, Error::<T>::LegCountTooSmall);

// Executes the instruction
match Self::execute_instruction_retryable(id) {
Ok(_) => Self::deposit_event(RawEvent::SettlementManuallyExecuted(did, id)),
Err(e) => Self::deposit_event(RawEvent::FailedToExecuteInstruction(id, e)),
}
Self::execute_instruction_retryable(id)?;

Self::deposit_event(RawEvent::SettlementManuallyExecuted(did, id));
}

}
Expand Down

0 comments on commit 6fd9184

Please sign in to comment.