Skip to content

Commit

Permalink
Merge pull request #192 from holaplex/espi/update-no-editions
Browse files Browse the repository at this point in the history
Update Mint Validate Mint isn't an Edition
  • Loading branch information
kespinola authored Aug 17, 2023
2 parents 405a168 + f8a0ed8 commit a5cd885
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 @@ -538,6 +538,10 @@ impl Mutation {
return Err(Error::new("Mint not created"));
}

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

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

Expand Down

0 comments on commit a5cd885

Please sign in to comment.