Skip to content

Commit

Permalink
Merge pull request #180 from holaplex/abdul/rename-mint-to-id
Browse files Browse the repository at this point in the history
rename Update Mint input mint field to id
  • Loading branch information
imabdulbasit authored Aug 11, 2023
2 parents 0710831 + 0fb8458 commit 4f3650c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions api/src/mutations/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ impl Mutation {

let (mint, collection) = CollectionMints::find()
.find_also_related(Collections)
.filter(collection_mints::Column::Id.eq(input.mint))
.filter(collection_mints::Column::Id.eq(input.id))
.one(conn)
.await?
.ok_or(Error::new("Mint not found"))?;
Expand Down Expand Up @@ -911,9 +911,15 @@ pub struct MintToCollectionInput {

#[derive(Debug, Clone, InputObject)]
pub struct UpdateMintInput {
mint: Uuid,
/// The ID of the mint to be updated
id: Uuid,
/// The metadata of the mint
metadata_json: MetadataJsonInput,
/// The optional seller fee basis points
seller_fee_basis_points: Option<u16>,
/// The creators to be assigned to the NFT.
/// For Solana, this can be up to five creators. If the project treasury wallet is set as a creator and verified set to true the creator will be verified on chain.
/// For Polygon, this can be only 1 creator.
creators: Vec<Creator>,
}

Expand Down Expand Up @@ -945,6 +951,7 @@ pub struct RetryMintToCollectionPayload {

#[derive(Debug, Clone, InputObject)]
pub struct RetryUpdateMintInput {
/// Update History ID
revision_id: Uuid,
}

Expand Down

0 comments on commit 4f3650c

Please sign in to comment.