Skip to content

Commit

Permalink
updated switch history status on successful txn
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Aug 30, 2023
1 parent 0bfcfc2 commit 8f35851
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@ impl Processor {
if let SwitchCollectionResult::Success(signature) = payload {
let deduction_id = history.credit_deduction_id;
history_am.signature = Set(Some(signature));
history_am.status = Set(CreationStatus::Created);

let mut mint_am: collection_mints::ActiveModel = mint.into();
mint_am.collection_id = Set(history.collection_id);
Expand Down

0 comments on commit 8f35851

Please sign in to comment.