This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export enum ExtensionType {
24
24
ImmutableOwner ,
25
25
MemoTransfer ,
26
26
NonTransferable ,
27
- InterestBearingMint ,
27
+ InterestBearingConfig ,
28
28
CpiGuard ,
29
29
PermanentDelegate ,
30
30
}
@@ -58,7 +58,7 @@ export function getTypeLen(e: ExtensionType): number {
58
58
return MEMO_TRANSFER_SIZE ;
59
59
case ExtensionType . NonTransferable :
60
60
return NON_TRANSFERABLE_SIZE ;
61
- case ExtensionType . InterestBearingMint :
61
+ case ExtensionType . InterestBearingConfig :
62
62
return INTEREST_BEARING_MINT_CONFIG_STATE_SIZE ;
63
63
case ExtensionType . PermanentDelegate :
64
64
return PERMANENT_DELEGATE_SIZE ;
@@ -82,7 +82,7 @@ export function getAccountTypeOfMintType(e: ExtensionType): ExtensionType {
82
82
case ExtensionType . MintCloseAuthority :
83
83
case ExtensionType . NonTransferable :
84
84
case ExtensionType . Uninitialized :
85
- case ExtensionType . InterestBearingMint :
85
+ case ExtensionType . InterestBearingConfig :
86
86
case ExtensionType . PermanentDelegate :
87
87
return ExtensionType . Uninitialized ;
88
88
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export async function createInterestBearingMint(
37
37
confirmOptions ?: ConfirmOptions ,
38
38
programId = TOKEN_2022_PROGRAM_ID
39
39
) : Promise < PublicKey > {
40
- const mintLen = getMintLen ( [ ExtensionType . InterestBearingMint ] ) ;
40
+ const mintLen = getMintLen ( [ ExtensionType . InterestBearingConfig ] ) ;
41
41
const lamports = await connection . getMinimumBalanceForRentExemption ( mintLen ) ;
42
42
const transaction = new Transaction ( ) . add (
43
43
SystemProgram . createAccount ( {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const InterestBearingMintConfigStateLayout = struct<InterestBearingMintCo
23
23
export const INTEREST_BEARING_MINT_CONFIG_STATE_SIZE = InterestBearingMintConfigStateLayout . span ;
24
24
25
25
export function getInterestBearingMintConfigState ( mint : Mint ) : InterestBearingMintConfigState | null {
26
- const extensionData = getExtensionData ( ExtensionType . InterestBearingMint , mint . tlvData ) ;
26
+ const extensionData = getExtensionData ( ExtensionType . InterestBearingConfig , mint . tlvData ) ;
27
27
if ( extensionData !== null ) {
28
28
return InterestBearingMintConfigStateLayout . decode ( extensionData ) ;
29
29
}
You can’t perform that action at this time.
0 commit comments