nit: remove copyposta (#4024)

This commit is contained in:
Jack May 2019-04-26 16:02:13 -07:00 committed by GitHub
parent 070e0e9613
commit 3cf708f019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 11 deletions

View File

@ -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::<ExchangeState>() 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)