Skip to content

Commit

Permalink
Remove the Core prefix from generated clients (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher authored Dec 4, 2024
1 parent 1716195 commit a7207b4
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/loaderV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
} from '../instructions';

export const LOADER_V3_PROGRAM_ADDRESS =
'CoreBPFLoaderUpgradeab1e1111111111111111111' as Address<'CoreBPFLoaderUpgradeab1e1111111111111111111'>;
'BPFLoaderUpgradeab1e11111111111111111111111' as Address<'BPFLoaderUpgradeab1e11111111111111111111111'>;

export enum LoaderV3Instruction {
InitializeBuffer,
Expand Down Expand Up @@ -71,7 +71,7 @@ export function identifyLoaderV3Instruction(
}

export type ParsedLoaderV3Instruction<
TProgram extends string = 'CoreBPFLoaderUpgradeab1e1111111111111111111',
TProgram extends string = 'BPFLoaderUpgradeab1e11111111111111111111111',
> =
| ({
instructionType: LoaderV3Instruction.InitializeBuffer;
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_v3` program ID.
pub const LOADER_V3_ID: Pubkey = pubkey!("CoreBPFLoaderUpgradeab1e1111111111111111111");
pub const LOADER_V3_ID: Pubkey = pubkey!("BPFLoaderUpgradeab1e11111111111111111111111");
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({
"solanaLoaderV3Program": { name: "loaderV3" },
solanaLoaderV3Program: {
name: "loaderV3",
publicKey: "BPFLoaderUpgradeab1e11111111111111111111111",
},
})
);

Expand Down

0 comments on commit a7207b4

Please sign in to comment.