From 3cf708f019e10d51b21d67c1ed68270ae6c934ff Mon Sep 17 00:00:00 2001 From: Jack May Date: Fri, 26 Apr 2019 16:02:13 -0700 Subject: [PATCH] nit: remove copyposta (#4024) --- programs/exchange_api/src/exchange_processor.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/programs/exchange_api/src/exchange_processor.rs b/programs/exchange_api/src/exchange_processor.rs index 2c40c56e5e..f9575dc607 100644 --- a/programs/exchange_api/src/exchange_processor.rs +++ b/programs/exchange_api/src/exchange_processor.rs @@ -579,17 +579,7 @@ mod test { } fn create_token_account(client: &BankClient, owner: &Keypair) -> Pubkey { - let new = Pubkey::new_rand(); - let instruction = system_instruction::create_account( - &owner.pubkey(), - &new, - 1, - mem::size_of::() as u64, - &id(), - ); - client - .send_instruction(owner, instruction) - .expect(&format!("{}:{}", line!(), file!())); + let new = create_account(&client, &owner); let instruction = exchange_instruction::account_request(&owner.pubkey(), &new); client .send_instruction(owner, instruction)