Skip to content

Commit 82874b7

Browse files
feat(sdk-coin-sol): token 2022 transfer hook implementation
transfer hook implementation for tbill, passing hookProgramId and authority Ticket: WIN-7258
1 parent dae78c4 commit 82874b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/sdk-coin-sol/src/lib/solInstructionFactory.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ function tokenTransferInstruction(data: TokenTransfer): TransactionInstruction[]
206206
new PublicKey(fromAddress),
207207
BigInt(amount),
208208
decimalPlaces,
209-
[],
209+
[
210+
{ pubkey: hookProgramId, isSigner: false, isWritable: false },
211+
{ pubkey: hookAuthority, isSigner: false, isWritable: false },
212+
],
210213
TOKEN_2022_PROGRAM_ID
211214
);
212215
// Check if this token has a transfer hook configuration

0 commit comments

Comments
 (0)