Skip to content

Commit

Permalink
Removing resize for two fungible instances which can no longer resize
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Jan 13, 2025
1 parent 3469dd9 commit 667d7c9
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions programs/token-metadata/program/tests/utils/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,30 +240,6 @@ impl Metadata {
#[cfg(feature = "padded")]
upsize_metadata(context, &self.pubkey).await;

#[cfg(feature = "resize")]
{
let tx = Transaction::new_signed_with_payer(
&[ResizeBuilder::new()
.metadata(self.pubkey)
.edition(find_master_edition_account(&self.mint.pubkey()).0)
.mint(self.mint.pubkey())
.payer(context.payer.pubkey())
.authority(context.payer.pubkey())
.token(self.token.pubkey())
.system_program(solana_program::system_program::ID)
.build()
.unwrap()
.instruction()],
Some(&context.payer.pubkey()),
&[&context.payer],
context.last_blockhash,
);

assert_before_metadata(context, self.pubkey).await;
context.banks_client.process_transaction(tx).await?;
assert_after_metadata(context, self.pubkey).await;
}

Ok(())
}

Expand Down Expand Up @@ -340,30 +316,6 @@ impl Metadata {
#[cfg(feature = "padded")]
upsize_metadata(context, &self.pubkey).await;

#[cfg(feature = "resize")]
{
let tx = Transaction::new_signed_with_payer(
&[ResizeBuilder::new()
.metadata(self.pubkey)
.edition(find_master_edition_account(&self.mint.pubkey()).0)
.mint(self.mint.pubkey())
.payer(context.payer.pubkey())
.authority(context.payer.pubkey())
.token(self.token.pubkey())
.system_program(solana_program::system_program::ID)
.build()
.unwrap()
.instruction()],
Some(&context.payer.pubkey()),
&[&context.payer],
context.last_blockhash,
);

assert_before_metadata(context, self.pubkey).await;
context.banks_client.process_transaction(tx).await?;
assert_after_metadata(context, self.pubkey).await;
}

Ok(())
}

Expand Down

0 comments on commit 667d7c9

Please sign in to comment.