Skip to content

Commit a7207b4

Browse files
authored
Remove the Core prefix from generated clients (#4)
1 parent 1716195 commit a7207b4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

clients/js/src/generated/programs/loaderV3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from '../instructions';
2525

2626
export const LOADER_V3_PROGRAM_ADDRESS =
27-
'CoreBPFLoaderUpgradeab1e1111111111111111111' as Address<'CoreBPFLoaderUpgradeab1e1111111111111111111'>;
27+
'BPFLoaderUpgradeab1e11111111111111111111111' as Address<'BPFLoaderUpgradeab1e11111111111111111111111'>;
2828

2929
export enum LoaderV3Instruction {
3030
InitializeBuffer,
@@ -71,7 +71,7 @@ export function identifyLoaderV3Instruction(
7171
}
7272

7373
export type ParsedLoaderV3Instruction<
74-
TProgram extends string = 'CoreBPFLoaderUpgradeab1e1111111111111111111',
74+
TProgram extends string = 'BPFLoaderUpgradeab1e11111111111111111111111',
7575
> =
7676
| ({
7777
instructionType: LoaderV3Instruction.InitializeBuffer;

clients/rust/src/generated/programs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
use solana_program::{pubkey, pubkey::Pubkey};
88

99
/// `loader_v3` program ID.
10-
pub const LOADER_V3_ID: Pubkey = pubkey!("CoreBPFLoaderUpgradeab1e1111111111111111111");
10+
pub const LOADER_V3_ID: Pubkey = pubkey!("BPFLoaderUpgradeab1e11111111111111111111111");

scripts/generate-clients.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const ciDir = path.join(__dirname, "..", "ci");
1515
// Update programs.
1616
kinobi.update(
1717
k.updateProgramsVisitor({
18-
"solanaLoaderV3Program": { name: "loaderV3" },
18+
solanaLoaderV3Program: {
19+
name: "loaderV3",
20+
publicKey: "BPFLoaderUpgradeab1e11111111111111111111111",
21+
},
1922
})
2023
);
2124

0 commit comments

Comments
 (0)