Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
DogukanGun committed Nov 14, 2024
1 parent 8b3c079 commit e2eefdd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions clients/js/src/generated/programs/token2022.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ export enum Token2022Instruction {
InitializePermanentDelegate,
InitializeTransferHook,
UpdateTransferHook,
WithdrawExcessLamports,
InitializeConfidentialTransferFee,
WithdrawWithheldTokensFromMintForConfidentialTransferFee,
WithdrawWithheldTokensFromAccountsForConfidentialTransferFee,
HarvestWithheldTokensToMintForConfidentialTransferFee,
EnableHarvestToMint,
DisableHarvestToMint,
WithdrawExcessLamports,
InitializeMetadataPointer,
UpdateMetadataPointer,
InitializeGroupPointer,
Expand Down Expand Up @@ -467,9 +467,6 @@ export function identifyToken2022Instruction(
) {
return Token2022Instruction.UpdateTransferHook;
}
if (containsBytes(data, getU8Encoder().encode(38), 0)) {
return Token2022Instruction.WithdrawExcessLamports;
}
if (
containsBytes(data, getU8Encoder().encode(37), 0) &&
containsBytes(data, getU8Encoder().encode(0), 1)
Expand Down Expand Up @@ -506,6 +503,9 @@ export function identifyToken2022Instruction(
) {
return Token2022Instruction.DisableHarvestToMint;
}
if (containsBytes(data, getU8Encoder().encode(38), 0)) {
return Token2022Instruction.WithdrawExcessLamports;
}
if (
containsBytes(data, getU8Encoder().encode(39), 0) &&
containsBytes(data, getU8Encoder().encode(0), 1)
Expand Down Expand Up @@ -798,8 +798,6 @@ export type ParsedToken2022Instruction<
instructionType: Token2022Instruction.UpdateTransferHook;
} & ParsedUpdateTransferHookInstruction<TProgram>)
| ({
instructionType: Token2022Instruction.WithdrawExcessLamports;
} & ParsedWithdrawExcessLamportsInstruction<TProgram>)
instructionType: Token2022Instruction.InitializeConfidentialTransferFee;
} & ParsedInitializeConfidentialTransferFeeInstruction<TProgram>)
| ({
Expand All @@ -817,6 +815,9 @@ export type ParsedToken2022Instruction<
| ({
instructionType: Token2022Instruction.DisableHarvestToMint;
} & ParsedDisableHarvestToMintInstruction<TProgram>)
| ({
instructionType: Token2022Instruction.WithdrawExcessLamports;
} & ParsedWithdrawExcessLamportsInstruction<TProgram>)
| ({
instructionType: Token2022Instruction.InitializeMetadataPointer;
} & ParsedInitializeMetadataPointerInstruction<TProgram>)
Expand Down

0 comments on commit e2eefdd

Please sign in to comment.