Skip to content

Commit 4cf4a5b

Browse files
committed
fix: pnpm fix & poseidon sync
1 parent f1134cf commit 4cf4a5b

File tree

5 files changed

+15
-23
lines changed

5 files changed

+15
-23
lines changed

basics/account-data/poseidon/Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolution = true
55
skip-lint = false
66

77
[programs.localnet]
8-
account_data = "3cvZMR8oDVXVcxcfuPmBpsEWnGMYh2uomwYohNSJSWwk"
8+
account_data = "CFiSZ4w8WcG7U8Axq3Lx5zpbyLiMMBde6HGKtZvRCn6U"
99

1010
[registry]
1111
url = "https://api.apr.dev"

basics/account-data/poseidon/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"license": "ISC",
2+
"license": "ISC",
33
"scripts": {
44
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
55
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"

basics/account-data/poseidon/programs/account-data/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anchor_lang::prelude::*;
2-
declare_id!("3cvZMR8oDVXVcxcfuPmBpsEWnGMYh2uomwYohNSJSWwk");
2+
declare_id!("CFiSZ4w8WcG7U8Axq3Lx5zpbyLiMMBde6HGKtZvRCn6U");
33
#[program]
44
pub mod account_data {
55
use super::*;
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import * as anchor from "@coral-xyz/anchor";
2-
import { Program } from "@coral-xyz/anchor";
3-
import { AccountData } from "../target/types/account_data";
1+
import * as anchor from '@coral-xyz/anchor';
2+
import { Program } from '@coral-xyz/anchor';
3+
import { AccountData } from '../target/types/account_data';
44

5-
describe("account-data", () => {
5+
describe('account-data', () => {
66
// Configure the client to use the local cluster.
77
anchor.setProvider(anchor.AnchorProvider.env());
88

99
const program = anchor.workspace.AccountData as Program<AccountData>;
1010

11-
it("Is initialized!", async () => {
11+
it('Is initialized!', async () => {
1212
// Add your test here.
1313
const tx = await program.methods.initialize().rpc();
14-
console.log("Your transaction signature", tx);
14+
console.log('Your transaction signature', tx);
1515
});
1616
});
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
import { Account, Pubkey, Result, u8 } from "@solanaturbine/poseidon";
1+
import { Account, Pubkey, Result, u8 } from '@solanaturbine/poseidon';
22

33
export default class AccountData {
4-
static PROGRAM_ID = new Pubkey(
5-
"3cvZMR8oDVXVcxcfuPmBpsEWnGMYh2uomwYohNSJSWwk",
6-
);
4+
static PROGRAM_ID = new Pubkey('3cvZMR8oDVXVcxcfuPmBpsEWnGMYh2uomwYohNSJSWwk');
75

8-
createAddressInfo(
9-
addressInfo: AddressInfo,
10-
name: String,
11-
houseNumber: u8,
12-
street: String,
13-
city: String,
14-
): Result {
6+
createAddressInfo(addressInfo: AddressInfo, name: string, houseNumber: u8, street: string, city: string): Result {
157
addressInfo.name = name;
168
addressInfo.houseNumber = houseNumber;
179
addressInfo.street = street;
@@ -20,8 +12,8 @@ export default class AccountData {
2012
}
2113

2214
export interface AddressInfo extends Account {
23-
name: String;
15+
name: string;
2416
houseNumber: u8;
25-
street: String;
26-
city: String;
17+
street: string;
18+
city: string;
2719
}

0 commit comments

Comments
 (0)