Test transaction with a fee

This commit is contained in:
Greg Fitzgerald 2019-02-28 06:40:57 -07:00
parent 404aa63147
commit a79caf7795
1 changed files with 6 additions and 0 deletions

View File

@ -227,6 +227,12 @@ mod tests {
assert_eq!(tx.instructions[0], Instruction::new(0, &0, vec![0]));
}
#[test]
fn test_transaction_builder_fee() {
let tx = TransactionBuilder::new(42).sign(&Vec::<&Keypair>::new(), Hash::default());
assert_eq!(tx.fee, 42);
}
#[test]
fn test_transaction_builder_kitchen_sink() {
let program_id0 = Pubkey::default();