File tree Expand file tree Collapse file tree 3 files changed +106
-109
lines changed
clients/js/src/generated/instructions Expand file tree Collapse file tree 3 files changed +106
-109
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,14 @@ export type AddMemoInput = {
5959 signers ?: Array < TransactionSigner > ;
6060} ;
6161
62- export function getAddMemoInstruction (
63- input : AddMemoInput
64- ) : AddMemoInstruction < typeof MEMO_PROGRAM_ADDRESS > {
62+ export function getAddMemoInstruction <
63+ TProgramAddress extends Address = typeof MEMO_PROGRAM_ADDRESS ,
64+ > (
65+ input : AddMemoInput ,
66+ config ?: { programAddress ?: TProgramAddress }
67+ ) : AddMemoInstruction < TProgramAddress > {
6568 // Program address.
66- const programAddress = MEMO_PROGRAM_ADDRESS ;
69+ const programAddress = config ?. programAddress ?? MEMO_PROGRAM_ADDRESS ;
6770
6871 // Original args.
6972 const args = { ...input } ;
@@ -83,7 +86,7 @@ export function getAddMemoInstruction(
8386 data : getAddMemoInstructionDataEncoder ( ) . encode (
8487 args as AddMemoInstructionDataArgs
8588 ) ,
86- } as AddMemoInstruction < typeof MEMO_PROGRAM_ADDRESS > ;
89+ } as AddMemoInstruction < TProgramAddress > ;
8790
8891 return instruction ;
8992}
Original file line number Diff line number Diff line change 2020 },
2121 "devDependencies" : {
2222 "@iarna/toml" : " ^2.2.5" ,
23- "@kinobi-so/renderers-js" : " ^0.21.2 " ,
24- "@kinobi-so/renderers-rust" : " ^0.21.0 " ,
25- "kinobi" : " ^0.21.0 " ,
23+ "@kinobi-so/renderers-js" : " ^0.21.9 " ,
24+ "@kinobi-so/renderers-rust" : " ^0.21.7 " ,
25+ "kinobi" : " ^0.21.5 " ,
2626 "typescript" : " ^5.5.2" ,
2727 "zx" : " ^7.2.3"
2828 },
You can’t perform that action at this time.
0 commit comments