Test transaction with a fee
This commit is contained in:
parent
404aa63147
commit
a79caf7795
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue