Make AccountMeta a traditional struct instead of a tuple struct
This commit is contained in:
@ -84,7 +84,7 @@ mod tests {
|
||||
SystemInstruction::new_move(&doe_client.pubkey(), &bob_pubkey, 42);
|
||||
move_instruction
|
||||
.accounts
|
||||
.push(AccountMeta(jane_pubkey, true));
|
||||
.push(AccountMeta::new(jane_pubkey, true));
|
||||
|
||||
doe_client.process_instruction(move_instruction).unwrap();
|
||||
assert_eq!(bank.get_balance(&bob_pubkey), 42);
|
||||
|
@ -292,8 +292,8 @@ mod tests {
|
||||
// Erroneously sign transaction with recipient account key
|
||||
// No signature case is tested by bank `test_zero_signatures()`
|
||||
let account_metas = vec![
|
||||
AccountMeta(alice_pubkey, false),
|
||||
AccountMeta(mallory_pubkey, true),
|
||||
AccountMeta::new(alice_pubkey, false),
|
||||
AccountMeta::new(mallory_pubkey, true),
|
||||
];
|
||||
let malicious_script = Script::new(vec![Instruction::new(
|
||||
system_program::id(),
|
||||
|
Reference in New Issue
Block a user