diff --git a/sdk/src/transaction.rs b/sdk/src/transaction.rs index 00ffb9d6c4..7ec66d60ef 100644 --- a/sdk/src/transaction.rs +++ b/sdk/src/transaction.rs @@ -479,8 +479,7 @@ mod tests { AccountMeta::new(id0, true), ], ); - let ixs = vec![ix]; - let mut tx = Transaction::new_with_payer(ixs, Some(&key.pubkey())); + let mut tx = Transaction::new_with_payer(&[ix], Some(&key.pubkey())); let o = tx.clone(); assert_eq!(tx.sanitize(), Ok(())); assert_eq!(tx.message.account_keys.len(), 3);