cli: Stop topping up buffer balance (#20181)
This commit is contained in:
@ -2037,7 +2037,6 @@ fn complete_partial_program_init(
|
||||
if account.owner != *loader_id {
|
||||
instructions.push(system_instruction::assign(elf_pubkey, loader_id));
|
||||
}
|
||||
}
|
||||
if account.lamports < minimum_balance {
|
||||
let balance = minimum_balance - account.lamports;
|
||||
instructions.push(system_instruction::transfer(
|
||||
@ -2056,6 +2055,7 @@ fn complete_partial_program_init(
|
||||
)
|
||||
.into());
|
||||
}
|
||||
}
|
||||
Ok((instructions, balance_needed))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user