Skip to content

Commit bbc3c4f

Browse files
committed
update poseidon
1 parent ae37cec commit bbc3c4f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

basics/realloc/poseidon/ts-programs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"author": "",
1111
"license": "ISC",
1212
"dependencies": {
13-
"@solanaturbine/poseidon": "^0.0.4"
13+
"@solanaturbine/poseidon": "^0.0.5"
1414
}
1515
}

basics/realloc/poseidon/ts-programs/pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Account, Pubkey, Result, Signer, SystemAccount, u8 } from '@solanaturbine/poseidon';
1+
import { Account, Pubkey, Result, Signer, String as PoseidonString, u8 } from '@solanaturbine/poseidon';
22

33
// Realloc Program:
44
// This program demonstrates how to handle dynamic fields stored in PDAs (Program Derived Addresses).
@@ -8,23 +8,23 @@ import { Account, Pubkey, Result, Signer, SystemAccount, u8 } from '@solanaturbi
88
export default class ReallocExample {
99
static PROGRAM_ID = new Pubkey('2TVLNyk3jZCVNQ5UVJQRFPdjY3APCToU77isidjB3re4');
1010

11-
initialize(payer: Signer, account: MessageAccountState, input: string): Result {
11+
initialize(payer: Signer, account: MessageAccountState, input: PoseidonString): Result {
1212
account.derive(['message']).init();
1313

1414
account.message = input;
1515

1616
account.bump = account.getBump();
1717
}
1818

19-
update(payer: Signer, account: MessageAccountState, input: string): Result {
19+
update(payer: Signer, account: MessageAccountState, input: PoseidonString): Result {
2020
account.derive(['message']);
2121

2222
account.message = input;
2323
}
2424
}
2525

2626
export interface MessageAccountState extends Account {
27-
message: string;
27+
message: PoseidonString;
2828

2929
bump: u8;
3030
}

0 commit comments

Comments
 (0)