Skip to content

Commit 6eba538

Browse files
committed
doc comment on payer and lamports
1 parent 6040556 commit 6eba538

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

programs/system/src/instructions/create_account_allow_prefund.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ pub struct CreateAccountAllowPrefund<'a> {
3131

3232
impl<'a> CreateAccountAllowPrefund<'a> {
3333
#[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.
3437
pub fn with_minimal_balance(
3538
payer: Option<&'a AccountView>,
3639
to: &'a AccountView,

0 commit comments

Comments
 (0)