From 0b9cc12d132e3e9f96b2837892d6cec7c79a2340 Mon Sep 17 00:00:00 2001 From: imabdulbasit Date: Wed, 20 Sep 2023 23:10:18 +0500 Subject: [PATCH] Fix credit action for random compressed NFT mint --- api/src/mutations/mint.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/src/mutations/mint.rs b/api/src/mutations/mint.rs index 94a4b45..5bcb89c 100644 --- a/api/src/mutations/mint.rs +++ b/api/src/mutations/mint.rs @@ -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, )