Make AccountMeta a traditional struct instead of a tuple struct

This commit is contained in:
Greg Fitzgerald
2019-03-19 15:25:48 -06:00
parent a4652a9aaf
commit 94b5835738
10 changed files with 82 additions and 54 deletions

View File

@ -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);