Skip to content

Commit

Permalink
Merge pull request #237 from holaplex/main
Browse files Browse the repository at this point in the history
Release - 9/20 Fix credit action for random compressed NFT mint
  • Loading branch information
imabdulbasit authored Sep 20, 2023
2 parents 50cb6b2 + 642eb9c commit 50764d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api/src/mutations/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1160,11 +1160,17 @@ impl Mutation {
.all(conn)
.await?;

let action = if input.compressed {
Actions::MintCompressed
} else {
Actions::Mint
};

let TransactionId(deduction_id) = credits
.submit_pending_deduction(
org_id,
user_id,
Actions::Mint,
action,
collection.blockchain.into(),
balance,
)
Expand Down

0 comments on commit 50764d0

Please sign in to comment.