|
|
@@ -31,6 +31,7 @@ import {
|
|
|
type InstructionWithAccounts,
|
|
|
type InstructionWithData,
|
|
|
type ReadonlySignerAccount,
|
|
|
+ type ReadonlyUint8Array,
|
|
|
type TransactionSigner,
|
|
|
type WritableAccount,
|
|
|
type WritableSignerAccount,
|
|
|
@@ -51,7 +52,7 @@ export type CreateAccountWithSeedInstruction<
|
|
|
TAccountBaseAccount extends string | AccountMeta<string> = string,
|
|
|
TRemainingAccounts extends readonly AccountMeta<string>[] = [],
|
|
|
> = Instruction<TProgram> &
|
|
|
- InstructionWithData<Uint8Array> &
|
|
|
+ InstructionWithData<ReadonlyUint8Array> &
|
|
|
InstructionWithAccounts<
|
|
|
[
|
|
|
TAccountPayer extends string
|
|
|
@@ -214,7 +215,7 @@ export function parseCreateAccountWithSeedInstruction<
|
|
|
>(
|
|
|
instruction: Instruction<TProgram> &
|
|
|
InstructionWithAccounts<TAccountMetas> &
|
|
|
- InstructionWithData<Uint8Array>
|
|
|
+ InstructionWithData<ReadonlyUint8Array>
|
|
|
): ParsedCreateAccountWithSeedInstruction<TProgram, TAccountMetas> {
|
|
|
if (instruction.accounts.length < 3) {
|
|
|
// TODO: Coded error.
|