Skip to content

Commit

Permalink
Add MintCloseAuthority to getInitializeInstructionsForMintExtensions …
Browse files Browse the repository at this point in the history
…helper (#54)

* Add MintCloseAuthority to getInitializeInstructionsForMintExtensions helper

* Fix linting issues
  • Loading branch information
beeman authored Dec 29, 2024
1 parent 060f7cc commit c58a48e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clients/js/src/getInitializeInstructionsForExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
getInitializeGroupPointerInstruction,
getInitializeInterestBearingMintInstruction,
getInitializeMetadataPointerInstruction,
getInitializeMintCloseAuthorityInstruction,
getInitializeTokenGroupInstruction,
getInitializeTokenMetadataInstruction,
getInitializeTransferFeeConfigInstruction,
Expand Down Expand Up @@ -118,6 +119,11 @@ export function getPreInitializeInstructionsForMintExtensions(
withdrawWithheldAuthorityElGamalPubkey: extension.elgamalPubkey,
}),
];
case 'MintCloseAuthority':
return getInitializeMintCloseAuthorityInstruction({
closeAuthority: extension.closeAuthority,
mint,
});
default:
return [];
}
Expand Down

0 comments on commit c58a48e

Please sign in to comment.