From 1b7b036a5cd9c6f5c806eab66b39db0cef58563f Mon Sep 17 00:00:00 2001 From: Bram Borggreve Date: Fri, 6 Dec 2024 14:11:59 +0000 Subject: [PATCH] fix: update program id of counter program --- anchor/Anchor.toml | 2 +- anchor/programs/counter/src/lib.rs | 2 +- anchor/src/counter-exports.ts | 2 +- anchor/target/idl/counter.json | 2 +- anchor/target/types/counter.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/anchor/Anchor.toml b/anchor/Anchor.toml index 9e3f376..d6f6cd6 100644 --- a/anchor/Anchor.toml +++ b/anchor/Anchor.toml @@ -6,7 +6,7 @@ resolution = true skip-lint = false [programs.localnet] -counter = "AsjZ3kWAUSQRNt2pZVeJkywhZ6gpLpHZmJjduPmKZDZZ" +counter = "coUnmi3oBUtwtd9fjeAvSsJssXh5A5xyPbhpewyzRVF" [registry] url = "https://api.apr.dev" diff --git a/anchor/programs/counter/src/lib.rs b/anchor/programs/counter/src/lib.rs index 7e9f534..ac83401 100644 --- a/anchor/programs/counter/src/lib.rs +++ b/anchor/programs/counter/src/lib.rs @@ -2,7 +2,7 @@ use anchor_lang::prelude::*; -declare_id!("AsjZ3kWAUSQRNt2pZVeJkywhZ6gpLpHZmJjduPmKZDZZ"); +declare_id!("coUnmi3oBUtwtd9fjeAvSsJssXh5A5xyPbhpewyzRVF"); #[program] pub mod counter { diff --git a/anchor/src/counter-exports.ts b/anchor/src/counter-exports.ts index 0a1b139..b4e6262 100644 --- a/anchor/src/counter-exports.ts +++ b/anchor/src/counter-exports.ts @@ -21,7 +21,7 @@ export function getCounterProgramId(cluster: Cluster) { case 'devnet': case 'testnet': // This is the program ID for the Counter program on devnet and testnet. - return new PublicKey('CounNZdmsQmWh7uVngV9FXW2dZ6zAgbJyYsvBpqbykg') + return new PublicKey('coUnmi3oBUtwtd9fjeAvSsJssXh5A5xyPbhpewyzRVF') case 'mainnet-beta': default: return COUNTER_PROGRAM_ID diff --git a/anchor/target/idl/counter.json b/anchor/target/idl/counter.json index b16a1ca..444357f 100644 --- a/anchor/target/idl/counter.json +++ b/anchor/target/idl/counter.json @@ -1,5 +1,5 @@ { - "address": "AsjZ3kWAUSQRNt2pZVeJkywhZ6gpLpHZmJjduPmKZDZZ", + "address": "coUnmi3oBUtwtd9fjeAvSsJssXh5A5xyPbhpewyzRVF", "metadata": { "name": "counter", "version": "0.1.0", diff --git a/anchor/target/types/counter.ts b/anchor/target/types/counter.ts index 74f6da9..e37bc72 100644 --- a/anchor/target/types/counter.ts +++ b/anchor/target/types/counter.ts @@ -5,7 +5,7 @@ * IDL can be found at `target/idl/counter.json`. */ export type Counter = { - "address": "AsjZ3kWAUSQRNt2pZVeJkywhZ6gpLpHZmJjduPmKZDZZ", + "address": "coUnmi3oBUtwtd9fjeAvSsJssXh5A5xyPbhpewyzRVF", "metadata": { "name": "counter", "version": "0.1.0",