Skip to content

Commit 6dd063b

Browse files
committed
refactored the code with new Poseidon Str naming type
1 parent 2bec8b2 commit 6dd063b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

basics/processing-instructions/poseidon/processing-instructions-program/ts-programs/package.json

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

basics/processing-instructions/poseidon/processing-instructions-program/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.

basics/processing-instructions/poseidon/processing-instructions-program/ts-programs/src/processingInstructionsProgram.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Account, Pubkey, type Result, u32 } from '@solanaturbine/poseidon';
1+
import { Account, Pubkey, type Result, Str, u32 } from '@solanaturbine/poseidon';
22

33
export default class ProcessingInstructionsProgram {
44
static PROGRAM_ID = new Pubkey('FUfFBrs2nHAud8gVESDMtYa7oa5aGa3DEngKKLGyV2hv');
55

6-
go_to_park(height: u32, name: String): Result {
6+
go_to_park(height: u32, name: Str<25>): Result {
77
// Display a welcome message
88
console.log('Welcome to the park,', name);
99
// Check if the height is above the threshold

0 commit comments

Comments
 (0)