Skip to content

Commit

Permalink
wip: update core pid
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Mar 11, 2024
1 parent 702c749 commit 670c159
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export function initializeCandyMachineV2(
if (!resolvedAccounts.mplCoreProgram.value) {
resolvedAccounts.mplCoreProgram.value = context.programs.getPublicKey(
'mplCore',
'CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL'
'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d'
);
resolvedAccounts.mplCoreProgram.isWritable = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function mintAssetFromCandyMachine(
if (!resolvedAccounts.mplCoreProgram.value) {
resolvedAccounts.mplCoreProgram.value = context.programs.getPublicKey(
'mplCore',
'CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL'
'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d'
);
resolvedAccounts.mplCoreProgram.isWritable = false;
}
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/mintV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export function mintV2(
if (!resolvedAccounts.mplCoreProgram.value) {
resolvedAccounts.mplCoreProgram.value = context.programs.getPublicKey(
'mplCore',
'CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL'
'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d'
);
resolvedAccounts.mplCoreProgram.isWritable = false;
}
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/setCollectionV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export function setCollectionV2(
if (!resolvedAccounts.mplCoreProgram.value) {
resolvedAccounts.mplCoreProgram.value = context.programs.getPublicKey(
'mplCore',
'CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL'
'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d'
);
resolvedAccounts.mplCoreProgram.isWritable = false;
}
Expand Down
3 changes: 1 addition & 2 deletions clients/js/test/_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,5 +373,4 @@ export const yesterday = (): DateTime => now() - 3600n * 24n;
export const tomorrow = (): DateTime => now() + 3600n * 24n;

// TODO move to mpl-core
export const isFrozen = (asset: AssetWithPlugins): boolean =>
(asset.plugins?.find((p) => p.plugin.__kind === 'Freeze')?.plugin as any).fields[0].frozen || false;
export const isFrozen = (asset: AssetWithPlugins): boolean => asset.freeze?.frozen || false;
2 changes: 1 addition & 1 deletion configs/kinobi.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const defaultsToCandyMachineAssetProgram = () =>
const defaultsToMplCoreProgram = () =>
k.programDefault(
"mplCore",
"CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL"
"CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d"
);

// Automatically recognize account default values.
Expand Down
2 changes: 1 addition & 1 deletion configs/validator.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
programs: [
{
label: "MPL Core",
programId: "CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL",
programId: "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d",
deployPath: getProgram("mpl_core_program.so"),
},
{
Expand Down

0 comments on commit 670c159

Please sign in to comment.