Skip to content

Commit

Permalink
verified technical requirements and made fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ritikbhatt20 committed Nov 25, 2024
1 parent 8a1b624 commit 0378bbe
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Account, Pubkey, Result, Signer, u8, u16, u32, String } from '@solanaturbine/poseidon';
import { Account, Pubkey, Result, Signer, u8, u16, u32 } from '@solanaturbine/poseidon';

export default class AccountDataProgram {
// Following Poseidon example pattern of static PROGRAM_ID
static PROGRAM_ID = new Pubkey('JvF1QDhgab1ARhACPWTAZnUymthGGmn3NXCj8i6mjSQ');

create_address_info(payer: Signer, state: AddressInfo, name: String<50>, houseNumber: u8, street: String<50>, city: String<50>): Result {
create_address_info(payer: Signer, state: AddressInfo, name: string, houseNumber: u8, street: string, city: string): Result {
// Use nit() for initialization
state.derive(['address_info', payer.key]).init(payer);
// Store the account data
Expand All @@ -16,8 +16,8 @@ export default class AccountDataProgram {
}

export interface AddressInfo extends Account {
name: String<50>;
name: string;
houseNumber: u8;
street: String<50>;
city: String<50>;
street: string;
city: string;
}

0 comments on commit 0378bbe

Please sign in to comment.