fix errors
This commit is contained in:
parent
b37bb9f12a
commit
ac3ae36aac
|
@ -32,6 +32,7 @@ export interface FunctionRequestAccountInitParams {
|
||||||
functionAccount: FunctionAccount;
|
functionAccount: FunctionAccount;
|
||||||
maxContainerParamsLen?: number;
|
maxContainerParamsLen?: number;
|
||||||
containerParams?: Buffer;
|
containerParams?: Buffer;
|
||||||
|
garbageCollectionSlot?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A keypair to be used to address this account.
|
* A keypair to be used to address this account.
|
||||||
|
@ -39,6 +40,8 @@ export interface FunctionRequestAccountInitParams {
|
||||||
* @default Keypair.generate()
|
* @default Keypair.generate()
|
||||||
*/
|
*/
|
||||||
keypair?: Keypair;
|
keypair?: Keypair;
|
||||||
|
|
||||||
|
authority?: PublicKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -137,6 +140,9 @@ export class FunctionRequestAccount extends Account<types.FunctionRequestAccount
|
||||||
containerParams: new Uint8Array(
|
containerParams: new Uint8Array(
|
||||||
params.containerParams ?? Buffer.from("")
|
params.containerParams ?? Buffer.from("")
|
||||||
),
|
),
|
||||||
|
garbageCollectionSlot: params.garbageCollectionSlot
|
||||||
|
? new BN(params.garbageCollectionSlot)
|
||||||
|
: null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -148,6 +154,7 @@ export class FunctionRequestAccount extends Account<types.FunctionRequestAccount
|
||||||
mint: program.mint.address,
|
mint: program.mint.address,
|
||||||
state: program.attestationProgramState.publicKey,
|
state: program.attestationProgramState.publicKey,
|
||||||
payer,
|
payer,
|
||||||
|
authority: params.authority ?? payer,
|
||||||
systemProgram: SystemProgram.programId,
|
systemProgram: SystemProgram.programId,
|
||||||
tokenProgram: TOKEN_PROGRAM_ID,
|
tokenProgram: TOKEN_PROGRAM_ID,
|
||||||
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
|
||||||
|
|
Loading…
Reference in New Issue