We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6040556 commit 6eba538Copy full SHA for 6eba538
programs/system/src/instructions/create_account_allow_prefund.rs
@@ -31,6 +31,9 @@ pub struct CreateAccountAllowPrefund<'a> {
31
32
impl<'a> CreateAccountAllowPrefund<'a> {
33
#[inline(always)]
34
+ /// Creates a new CreateAccountAllowPrefund instruction with the minimal balance required
35
+ /// for the account. The caller must provide a `payer` if the account needs lamports;
36
+ /// otherwise, the resulting instruction will fail downstream.
37
pub fn with_minimal_balance(
38
payer: Option<&'a AccountView>,
39
to: &'a AccountView,
0 commit comments