Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 28f9ab0

Browse files
committed
remove max(1) condition on pda creation
1 parent 091f6d8 commit 28f9ab0

File tree

1 file changed

+1
-2
lines changed
  • token/confidential-transfer/elgamal-registry/src

1 file changed

+1
-2
lines changed

token/confidential-transfer/elgamal-registry/src/processor.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ pub fn create_pda_account<'a>(
150150
if new_pda_account.lamports() > 0 {
151151
let required_lamports = rent
152152
.minimum_balance(space)
153-
.max(1)
154153
.saturating_sub(new_pda_account.lamports());
155154

156155
if required_lamports > 0 {
@@ -180,7 +179,7 @@ pub fn create_pda_account<'a>(
180179
&system_instruction::create_account(
181180
payer.key,
182181
new_pda_account.key,
183-
rent.minimum_balance(space).max(1),
182+
rent.minimum_balance(space),
184183
space as u64,
185184
owner,
186185
),

0 commit comments

Comments
 (0)