Skip to content

Commit

Permalink
Merge pull request #197 from holaplex/abdul/err-compressed-mint-update
Browse files Browse the repository at this point in the history
Prevent Updating Compressed NFTs
  • Loading branch information
kespinola authored Aug 18, 2023
2 parents a5cd885 + ebbaa32 commit ef41d2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/mutations/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,10 @@ impl Mutation {
return Err(Error::new("Mint is an edition and cannot be updated"));
}

if mint.compressed {
return Err(Error::new("Mint is compressed and cannot be updated"));
}

let collection = collection.ok_or(Error::new("Collection not found"))?;
let blockchain = collection.blockchain;

Expand Down

0 comments on commit ef41d2d

Please sign in to comment.