1234567891011121314151617181920212223242526272829303132 |
- use anchor_lang::prelude::*;
- use instructions::*;
- pub mod instructions;
- pub mod state;
- declare_id!("FFKtnYFyzPj1qFjE9epkrfYHJwZMdh8CvJrB6XsKeFVz");
- #[program]
- pub mod anchor_program_example {
- use super::*;
- pub fn create_address_info(
- ctx: Context<CreateAddressInfo>,
- name: String,
- house_number: u8,
- street: String,
- city: String,
- ) -> Result<()> {
-
- instructions::create::create_address_info(
- ctx,
- name,
- house_number,
- street,
- city,
- )
- }
- }
|