Skip to content

Commit

Permalink
fix: stop transferring metadata and metadata pointer authorities (#4527)
Browse files Browse the repository at this point in the history
### Description

<!--
What's included in this PR?
-->

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->
  • Loading branch information
tkporter committed Sep 19, 2024
1 parent f81294a commit 52c0418
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/sealevel/client/src/warp_route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ impl RouterDeployer<TokenConfig> for WarpRouteDeployer {
.expect("Failed to run command");
println!("initialized metadata. Status: {status}");

// Burn the metadata pointer, metadata, and mint authorities by moving them to the mint
let authorities_to_transfer = &["metadata-pointer", "metadata", "mint"];
// Move the mint authority to the mint account.
// The deployer key will still hold the metadata pointer and metadata authorities.
let authorities_to_transfer = &["mint"];

for authority in authorities_to_transfer {
println!("Transferring authority: {authority} to the mint account {mint_account}");
Expand Down

0 comments on commit 52c0418

Please sign in to comment.