Update program ids for devnet deployment

This commit is contained in:
Christian Kamm 2021-12-14 12:47:12 +01:00
parent a7dd5684c3
commit 3071c1edcf
4 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,8 @@
[programs.localnet]
voter_stake_registry = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
voter_stake_registry = "4Q6WW2ouZ6V3iaNm56MTd5n2tnTm4C5fiH8miFHnAFHo"
[programs.devnet]
voter_stake_registry = "4Q6WW2ouZ6V3iaNm56MTd5n2tnTm4C5fiH8miFHnAFHo"
[provider]
cluster = "localnet"

View File

@ -13,7 +13,7 @@ pub struct SetTimeOffset<'info> {
/// A debug-only instruction that advances the time.
pub fn set_time_offset(ctx: Context<SetTimeOffset>, time_offset: i64) -> Result<()> {
let allowed_program = Pubkey::from_str("GovernanceProgram11111111111111111111111111").unwrap();
let allowed_program = Pubkey::from_str("GovernanceProgramTest1111111111111111111111").unwrap();
let registrar = &mut ctx.accounts.registrar.load_mut()?;
require!(
registrar.governance_program_id == allowed_program,

View File

@ -11,7 +11,7 @@ pub mod state;
extern crate static_assertions;
// The program address.
declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");
declare_id!("4Q6WW2ouZ6V3iaNm56MTd5n2tnTm4C5fiH8miFHnAFHo");
/// # Introduction
///

View File

@ -67,7 +67,7 @@ impl TestContext {
test.set_bpf_compute_max_units(100000);
let governance_program_id =
Pubkey::from_str(&"GovernanceProgram11111111111111111111111111").unwrap();
Pubkey::from_str(&"GovernanceProgramTest1111111111111111111111").unwrap();
test.add_program(
"spl_governance",
governance_program_id,