From 147db438d4603f97c14c1ed773b107a6316db31f Mon Sep 17 00:00:00 2001 From: Jo D Date: Mon, 16 Mar 2026 15:11:40 -0400 Subject: [PATCH] fix(ci): use only implemented builder methods in generate-ts-client The script was calling .appendAccountDiscriminator(), .appendPdaDerivers(), .setInstructionAccountDefaultValues(), .updateInstructionBumps(), and .removeEmitInstruction() which were never implemented on EscrowCodamaBuilder. Use only .appendAccountVersion().build(), matching generate-clients.ts. --- scripts/generate-ts-client.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/generate-ts-client.ts b/scripts/generate-ts-client.ts index 74e0174..caf948b 100644 --- a/scripts/generate-ts-client.ts +++ b/scripts/generate-ts-client.ts @@ -16,14 +16,7 @@ const idlDir = path.join(projectRoot, 'idl'); const escrowIdl = JSON.parse(fs.readFileSync(path.join(idlDir, 'escrow_program.json'), 'utf-8')) as AnchorIdl; const typescriptClientsDir = path.join(__dirname, '..', 'clients', 'typescript'); -const escrowCodama = createEscrowCodamaBuilder(escrowIdl) - .appendAccountDiscriminator() - .appendAccountVersion() - .appendPdaDerivers() - .setInstructionAccountDefaultValues() - .updateInstructionBumps() - .removeEmitInstruction() - .build(); +const escrowCodama = createEscrowCodamaBuilder(escrowIdl).appendAccountVersion().build(); const configPreserver = preserveConfigFiles(typescriptClientsDir);