Skip to content

Commit

Permalink
synced poseidon id
Browse files Browse the repository at this point in the history
  • Loading branch information
SohZHong committed Nov 26, 2024
1 parent fca8b79 commit c2a7a8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion basics/account-data/poseidon/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resolution = true
skip-lint = false

[programs.localnet]
account_data = "5wF2itZNsDcf5s1SdcdJPdgBSTFAKjj6YbdicLFYi8vN"
account_data = "5p8KvdgFw7VygwT3J19dqDRDHDFUt6wKdDiA4s1kctdf"

[registry]
url = "https://api.apr.dev"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anchor_lang::prelude::*;
declare_id!("5wF2itZNsDcf5s1SdcdJPdgBSTFAKjj6YbdicLFYi8vN");
declare_id!("5p8KvdgFw7VygwT3J19dqDRDHDFUt6wKdDiA4s1kctdf");
#[program]
pub mod address_info {
use super::*;
Expand Down
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit c2a7a8d

Please sign in to comment.