From c2a7a8d3be689d9929b8e79ed9dfec4eb99d1cc0 Mon Sep 17 00:00:00 2001 From: SohZHong Date: Tue, 26 Nov 2024 10:44:27 +0800 Subject: [PATCH] synced poseidon id --- basics/account-data/poseidon/Anchor.toml | 2 +- basics/account-data/poseidon/programs/account_data/src/lib.rs | 2 +- basics/account-data/poseidon/ts-programs/src/accountData.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/basics/account-data/poseidon/Anchor.toml b/basics/account-data/poseidon/Anchor.toml index 7555a3cb8..84542abec 100644 --- a/basics/account-data/poseidon/Anchor.toml +++ b/basics/account-data/poseidon/Anchor.toml @@ -5,7 +5,7 @@ resolution = true skip-lint = false [programs.localnet] -account_data = "5wF2itZNsDcf5s1SdcdJPdgBSTFAKjj6YbdicLFYi8vN" +account_data = "5p8KvdgFw7VygwT3J19dqDRDHDFUt6wKdDiA4s1kctdf" [registry] url = "https://api.apr.dev" diff --git a/basics/account-data/poseidon/programs/account_data/src/lib.rs b/basics/account-data/poseidon/programs/account_data/src/lib.rs index a1aef49bd..3949c9b77 100644 --- a/basics/account-data/poseidon/programs/account_data/src/lib.rs +++ b/basics/account-data/poseidon/programs/account_data/src/lib.rs @@ -1,5 +1,5 @@ use anchor_lang::prelude::*; -declare_id!("5wF2itZNsDcf5s1SdcdJPdgBSTFAKjj6YbdicLFYi8vN"); +declare_id!("5p8KvdgFw7VygwT3J19dqDRDHDFUt6wKdDiA4s1kctdf"); #[program] pub mod address_info { use super::*; diff --git a/basics/account-data/poseidon/ts-programs/src/accountData.ts b/basics/account-data/poseidon/ts-programs/src/accountData.ts index ca4b54b73..9455e6b5b 100644 --- a/basics/account-data/poseidon/ts-programs/src/accountData.ts +++ b/basics/account-data/poseidon/ts-programs/src/accountData.ts @@ -1,7 +1,7 @@ import { Account, Pubkey, Result, Signer, u8, u16, u32 } from '@solanaturbine/poseidon'; export default class AddressInfo { - static PROGRAM_ID = new Pubkey('5wF2itZNsDcf5s1SdcdJPdgBSTFAKjj6YbdicLFYi8vN'); + static PROGRAM_ID = new Pubkey("5p8KvdgFw7VygwT3J19dqDRDHDFUt6wKdDiA4s1kctdf"); initialize(owner: Signer, state: AddressInfoState, houseNumber: u8, streetNumber: u16, zipCode: u32, countryCode: u16): Result { state.derive(['account_data', owner.key]).init();