Skip to content

Commit e39d9fe

Browse files
author
Bengt Lofgren
committed
make lint and rename of files
1 parent 66c04f8 commit e39d9fe

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed
File renamed without changes.

solana/programs/matching-engine/src/fallback/processor/helpers.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use anchor_lang::prelude::*;
22

33
use anchor_spl::token::spl_token;
4+
use solana_program::program_pack::Pack;
45
use solana_program::{
56
entrypoint::ProgramResult,
67
instruction::{AccountMeta, Instruction},
@@ -144,14 +145,11 @@ pub fn create_account_reliably(
144145
/// * `data_len` - The length of the data to be written to the token account.
145146
/// * `accounts` - The accounts to be used in the CPI.
146147
/// * `signer_seeds` - The signer seeds to be used in the CPI.
147-
//TODO: Fix clippy warning
148-
#[allow(clippy::too_many_arguments)]
149148
pub fn create_token_account_reliably(
150149
payer_pubkey: &Pubkey,
151150
account_pubkey_to_create: &Pubkey,
152151
owner_account_pubkey: &Pubkey,
153152
mint_pubkey: &Pubkey,
154-
data_len: usize,
155153
token_account_lamports: u64,
156154
accounts: &[AccountInfo],
157155
signer_seeds: &[&[&[u8]]],
@@ -161,7 +159,7 @@ pub fn create_token_account_reliably(
161159
payer_pubkey,
162160
account_pubkey_to_create,
163161
token_account_lamports,
164-
data_len,
162+
spl_token::state::Account::LEN,
165163
accounts,
166164
&spl_token::ID,
167165
signer_seeds,
File renamed without changes.

solana/programs/matching-engine/src/fallback/processor/place_initial_offer.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use common::TRANSFER_AUTHORITY_SEED_PREFIX;
1515
use solana_program::instruction::Instruction;
1616
use solana_program::keccak;
1717
use solana_program::program::invoke_signed_unchecked;
18-
use solana_program::program_pack::Pack;
1918

2019
use super::FallbackMatchingEngineInstruction;
2120
use crate::error::MatchingEngineError;
@@ -390,7 +389,6 @@ pub fn place_initial_offer_cctp_shim(
390389
&auction_custody_token_pda,
391390
&auction_account.key(),
392391
&usdc.key(),
393-
spl_token::state::Account::LEN,
394392
auction_custody_token.lamports(),
395393
accounts,
396394
auction_custody_token_signer_seeds,

solana/programs/matching-engine/src/fallback/processor/prepare_order_response.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use ruint::aliases::U256;
2525
use solana_program::instruction::Instruction;
2626
use solana_program::keccak;
2727
use solana_program::program::invoke_signed_unchecked;
28-
use solana_program::program_pack::Pack;
2928
use wormhole_io::WriteableBytes;
3029

3130
use crate::error::MatchingEngineError;
@@ -467,7 +466,6 @@ pub fn prepare_order_response_cctp_shim(
467466
&prepared_custody_token_pda,
468467
&prepared_order_response_pda,
469468
&usdc.key(),
470-
spl_token::state::Account::LEN,
471469
prepared_custody_token.lamports(),
472470
accounts,
473471
prepared_custody_token_signer_seeds,

0 commit comments

Comments
 (0)