Skip to content

Commit 85897b2

Browse files
authored
Bump Kinobi to 0.21.5 (#16)
1 parent 4236e11 commit 85897b2

File tree

3 files changed

+106
-109
lines changed

3 files changed

+106
-109
lines changed

clients/js/src/generated/instructions/addMemo.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
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
},

pnpm-lock.yaml

Lines changed: 95 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)