Skip to content

Commit 20b8d91

Browse files
committed
Achieve technical completeness
1 parent d9e8715 commit 20b8d91

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

basics/pda-rent-payer/steel/api/src/instruction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use borsh::{ BorshDeserialize, BorshSerialize };
1+
use borsh::{BorshDeserialize, BorshSerialize};
22
use steel::*;
33

44
#[repr(u8)]

basics/pda-rent-payer/steel/program/src/create_new_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn process_create_account(accounts: &[AccountInfo<'_>]) -> ProgramResult {
2222
// First we get the lamports required for rent
2323
// assuming this account has no inner data
2424
let lamports_required_for_rent = (Rent::get()?).minimum_balance(0);
25-
25+
2626
if vault_balance < lamports_required_for_rent {
2727
return Err(ProgramError::InsufficientFunds);
2828
}

basics/pda-rent-payer/steel/program/src/init_rent_vault.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub fn process_initialize_vault(accounts: &[AccountInfo<'_>], data: &[u8]) -> Pr
5151

5252
match transfer {
5353
Ok(_) => (),
54-
Err(e) => return Err(e.into()),
54+
Err(e) => return Err(e),
5555
}
5656

5757
msg!("Initialized rent vault.");

0 commit comments

Comments
 (0)