diff --git a/zcash_client_backend/src/data_api/testing.rs b/zcash_client_backend/src/data_api/testing.rs index ba4f81efb0..46e8b1cac8 100644 --- a/zcash_client_backend/src/data_api/testing.rs +++ b/zcash_client_backend/src/data_api/testing.rs @@ -107,7 +107,7 @@ pub struct TransactionSummary { impl TransactionSummary { #[allow(clippy::too_many_arguments)] - pub fn new( + pub fn from_parts( account_id: AccountId, txid: TxId, expiry_height: Option, diff --git a/zcash_client_sqlite/src/wallet.rs b/zcash_client_sqlite/src/wallet.rs index 63b275017c..dc0dbef217 100644 --- a/zcash_client_sqlite/src/wallet.rs +++ b/zcash_client_sqlite/src/wallet.rs @@ -3194,7 +3194,7 @@ pub mod testing { let results = stmt .query_and_then::, SqliteClientError, _, _>([], |row| { - Ok(TransactionSummary::new( + Ok(TransactionSummary::from_parts( AccountId(row.get("account_id")?), TxId::from_bytes(row.get("txid")?), row.get::<_, Option>("expiry_height")?