From c58a48ed96a31daedf2ef23bbea9558836780eaa Mon Sep 17 00:00:00 2001 From: beeman Date: Sun, 29 Dec 2024 17:30:38 +0000 Subject: [PATCH] Add MintCloseAuthority to getInitializeInstructionsForMintExtensions helper (#54) * Add MintCloseAuthority to getInitializeInstructionsForMintExtensions helper * Fix linting issues --- clients/js/src/getInitializeInstructionsForExtensions.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clients/js/src/getInitializeInstructionsForExtensions.ts b/clients/js/src/getInitializeInstructionsForExtensions.ts index 7d5cd07f..798dc695 100644 --- a/clients/js/src/getInitializeInstructionsForExtensions.ts +++ b/clients/js/src/getInitializeInstructionsForExtensions.ts @@ -18,6 +18,7 @@ import { getInitializeGroupPointerInstruction, getInitializeInterestBearingMintInstruction, getInitializeMetadataPointerInstruction, + getInitializeMintCloseAuthorityInstruction, getInitializeTokenGroupInstruction, getInitializeTokenMetadataInstruction, getInitializeTransferFeeConfigInstruction, @@ -118,6 +119,11 @@ export function getPreInitializeInstructionsForMintExtensions( withdrawWithheldAuthorityElGamalPubkey: extension.elgamalPubkey, }), ]; + case 'MintCloseAuthority': + return getInitializeMintCloseAuthorityInstruction({ + closeAuthority: extension.closeAuthority, + mint, + }); default: return []; }