Generalize Transaction::new to accept anything that implements KeypairUtil

This commit is contained in:
Greg Fitzgerald
2019-01-29 16:57:48 -07:00
parent 34c8b2cc2f
commit c741a960b9
8 changed files with 26 additions and 25 deletions

View File

@@ -457,7 +457,7 @@ mod tests {
let mut error_counters = ErrorCounters::default();
let instructions = vec![Instruction::new(1, &(), vec![0])];
let tx = Transaction::new_with_instructions(
let tx = Transaction::new_with_instructions::<Keypair>(
&[],
&[],
Hash::default(),