Skip to content

Commit

Permalink
Format contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Feb 7, 2025
1 parent 3d1c033 commit 43adc54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/programs/contract-reader-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ pub mod contract_reader_interface {
account.idx = test_idx;
account.bump = ctx.bumps.data;

let multi_read1 = &mut ctx.accounts.multi_read1;
let multi_read1 = &mut ctx.accounts.multi_read1;
multi_read1.a = 1;
multi_read1.b = 2;
multi_read1.c = true;

let multi_read2 = &mut ctx.accounts.multi_read2;
multi_read2.u = "Hello".to_string();
multi_read2.v = true;
multi_read2.w = [123, 456];
multi_read2.w = [123, 456];

Ok(())
}
Expand Down Expand Up @@ -75,7 +75,7 @@ pub struct Initialize<'info> {
bump)]
pub data: Account<'info, DataAccount>,

#[account(
#[account(
init,
payer = signer,
space = 100,
Expand All @@ -84,7 +84,7 @@ pub struct Initialize<'info> {
)]
pub multi_read1: Account<'info, MultiRead1>,

#[account(
#[account(
init,
payer = signer,
space = 200,
Expand Down

0 comments on commit 43adc54

Please sign in to comment.