We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e72b74 commit e04e599Copy full SHA for e04e599
programs/system/src/lib.rs
@@ -35,6 +35,7 @@ pub fn create_account_with_minimal_balance(
35
};
36
37
if account.lamports() == 0 {
38
+ // Create the account if it does not exist.
39
CreateAccount {
40
from: payer,
41
to: account,
@@ -56,9 +57,10 @@ pub fn create_account_with_minimal_balance(
56
57
.invoke()?;
58
}
59
60
+ // Assign the account to the specified owner.
61
Assign { account, owner }.invoke_signed(signers)?;
62
- // Allocates the required space for the account.
63
+ // Allocate the required space for the account.
64
//
65
// SAFETY: There are no active borrows of the `account`.
66
// This was checked by the `Assign` CPI above.
0 commit comments