Skip to content

Commit

Permalink
Remove the Core prefix from generated clients
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Dec 3, 2024
1 parent 1c8184f commit 964e22d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clients/js/src/generated/programs/loaderV4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
} from '../instructions';

export const LOADER_V4_PROGRAM_ADDRESS =
'CoreBPFLoaderV41111111111111111111111111111' as Address<'CoreBPFLoaderV41111111111111111111111111111'>;
'LoaderV411111111111111111111111111111111111' as Address<'LoaderV411111111111111111111111111111111111'>;

export enum LoaderV4Instruction {
Write,
Expand Down Expand Up @@ -61,7 +61,7 @@ export function identifyLoaderV4Instruction(
}

export type ParsedLoaderV4Instruction<
TProgram extends string = 'CoreBPFLoaderV41111111111111111111111111111',
TProgram extends string = 'LoaderV411111111111111111111111111111111111',
> =
| ({
instructionType: LoaderV4Instruction.Write;
Expand Down
2 changes: 1 addition & 1 deletion clients/rust/src/generated/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
use solana_program::{pubkey, pubkey::Pubkey};

/// `loader_v4` program ID.
pub const LOADER_V4_ID: Pubkey = pubkey!("CoreBPFLoaderV41111111111111111111111111111");
pub const LOADER_V4_ID: Pubkey = pubkey!("LoaderV411111111111111111111111111111111111");
5 changes: 4 additions & 1 deletion scripts/generate-clients.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ const ciDir = path.join(__dirname, "..", "ci");
// Update programs.
kinobi.update(
k.updateProgramsVisitor({
"solanaLoaderV4Program": { name: "loaderV4" },
solanaLoaderV4Program: {
name: "loaderV4",
publicKey: "LoaderV411111111111111111111111111111111111",
},
})
);

Expand Down

0 comments on commit 964e22d

Please sign in to comment.