Label tuple with AccountMeta

This commit is contained in:
Greg Fitzgerald
2019-03-19 13:03:20 -06:00
parent 7246d72f03
commit a4652a9aaf
10 changed files with 83 additions and 68 deletions

View File

@ -1,6 +1,6 @@
use crate::pubkey::Pubkey;
use crate::system_program;
use crate::transaction::Instruction;
use crate::transaction::{AccountMeta, Instruction};
#[derive(Serialize, Debug, Clone, PartialEq)]
pub enum SystemError {
@ -46,7 +46,7 @@ impl SystemInstruction {
space,
program_id: *program_id,
},
vec![(*from_id, true), (*to_id, false)],
vec![AccountMeta(*from_id, true), AccountMeta(*to_id, false)],
)
}
@ -54,7 +54,7 @@ impl SystemInstruction {
Instruction::new(
system_program::id(),
&SystemInstruction::Move { lamports },
vec![(*from_id, true), (*to_id, false)],
vec![AccountMeta(*from_id, true), AccountMeta(*to_id, false)],
)
}
}