Skip to content

Commit

Permalink
program/rust test_add_publisher.rs: Remove trivial variable
Browse files Browse the repository at this point in the history
  • Loading branch information
drozdziak1 committed Oct 2, 2023
1 parent eb0714b commit bebd11d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions program/rust/src/tests/test_add_publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ fn test_add_publisher() {
Err(OracleError::InvalidSignableAccount.into())
);

let price_size = PriceAccount::MINIMUM_SIZE;

// Now give the price account enough lamports to be rent exempt
**price_account.try_borrow_mut_lamports().unwrap() =
Rent::minimum_balance(&Rent::default(), price_size);
Rent::minimum_balance(&Rent::default(), PriceAccount::MINIMUM_SIZE);

assert!(process_instruction(
&program_id,
Expand Down

0 comments on commit bebd11d

Please sign in to comment.