Rename 'new_account' to 'new_user_account'
And 'new_program_account' to 'new_account'
This commit is contained in:
@@ -527,7 +527,7 @@ mod test {
|
||||
|
||||
fn create_account(client: &BankClient, owner: &Keypair) -> Pubkey {
|
||||
let new = Pubkey::new_rand();
|
||||
let instruction = SystemInstruction::new_program_account(
|
||||
let instruction = SystemInstruction::new_account(
|
||||
&owner.pubkey(),
|
||||
&new,
|
||||
1,
|
||||
@@ -542,7 +542,7 @@ mod test {
|
||||
|
||||
fn create_token_account(client: &BankClient, owner: &Keypair) -> Pubkey {
|
||||
let new = Pubkey::new_rand();
|
||||
let instruction = SystemInstruction::new_program_account(
|
||||
let instruction = SystemInstruction::new_account(
|
||||
&owner.pubkey(),
|
||||
&new,
|
||||
1,
|
||||
|
Reference in New Issue
Block a user