Add a constructor to generate random pubkeys

This commit is contained in:
Greg Fitzgerald
2019-03-30 21:37:33 -06:00
parent 32683cac7c
commit fcef54d062
51 changed files with 263 additions and 298 deletions

View File

@ -522,7 +522,7 @@ mod test {
}
fn create_account(client: &BankClient, owner: &Keypair) -> Pubkey {
let new = Keypair::new().pubkey();
let new = Pubkey::new_rand();
let instruction = SystemInstruction::new_program_account(
&owner.pubkey(),
&new,
@ -537,7 +537,7 @@ mod test {
}
fn create_token_account(client: &BankClient, owner: &Keypair) -> Pubkey {
let new = Keypair::new().pubkey();
let new = Pubkey::new_rand();
let instruction = SystemInstruction::new_program_account(
&owner.pubkey(),
&new,