Skip to content

Commit 4035b0e

Browse files
committed
feat: allow duplicate accounts in realloc2 ix
1 parent a6f6c57 commit 4035b0e

File tree

1 file changed

+1
-0
lines changed
  • tests/realloc/programs/realloc/src

1 file changed

+1
-0
lines changed

tests/realloc/programs/realloc/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ pub struct Realloc2<'info> {
9393
realloc = Sample::space((len + 10) as usize),
9494
realloc::payer = authority,
9595
realloc::zero = false,
96+
dup, // Allow duplicate accounts
9697
)]
9798
pub sample2: Account<'info, Sample>,
9899

0 commit comments

Comments
 (0)