Skip to content

Commit

Permalink
fix: update program id of counter program
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Dec 6, 2024
1 parent 943685c commit 1b7b036
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion anchor/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resolution = true
skip-lint = false

[programs.localnet]
counter = "AsjZ3kWAUSQRNt2pZVeJkywhZ6gpLpHZmJjduPmKZDZZ"
counter = "coUnmi3oBUtwtd9fjeAvSsJssXh5A5xyPbhpewyzRVF"

[registry]
url = "https://api.apr.dev"
Expand Down
2 changes: 1 addition & 1 deletion anchor/programs/counter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use anchor_lang::prelude::*;

declare_id!("AsjZ3kWAUSQRNt2pZVeJkywhZ6gpLpHZmJjduPmKZDZZ");
declare_id!("coUnmi3oBUtwtd9fjeAvSsJssXh5A5xyPbhpewyzRVF");

#[program]
pub mod counter {
Expand Down
2 changes: 1 addition & 1 deletion anchor/src/counter-exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion anchor/target/idl/counter.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "AsjZ3kWAUSQRNt2pZVeJkywhZ6gpLpHZmJjduPmKZDZZ",
"address": "coUnmi3oBUtwtd9fjeAvSsJssXh5A5xyPbhpewyzRVF",
"metadata": {
"name": "counter",
"version": "0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion anchor/target/types/counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1b7b036

Please sign in to comment.