Move Bank-based tests into unit-tests

This commit is contained in:
Greg Fitzgerald
2019-03-16 17:37:18 -06:00
committed by Grimes
parent c09accb685
commit 0c0716abfb
7 changed files with 64 additions and 78 deletions

View File

@@ -20,7 +20,7 @@ impl<'a> BankClient<'a> {
pub fn process_transaction(&self, mut tx: Transaction) -> Result<(), TransactionError> {
tx.sign(&[&self.keypair], self.bank.last_blockhash());
self.bank.process_transaction(&mut tx)
self.bank.process_transaction(&tx)
}
/// Create and process a transaction.