From 4fc017deb091a646d6ca066ddd7c5f6043f8632b Mon Sep 17 00:00:00 2001 From: Roman Proskuryakoff Date: Fri, 14 Jun 2024 17:19:02 +0300 Subject: [PATCH] Fix review notes --- crates/consensus/src/transaction/envelope.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/consensus/src/transaction/envelope.rs b/crates/consensus/src/transaction/envelope.rs index 93164122876..bab50dcffd9 100644 --- a/crates/consensus/src/transaction/envelope.rs +++ b/crates/consensus/src/transaction/envelope.rs @@ -469,7 +469,7 @@ mod tests { ) where Signed: Into, { - let signature = signature.unwrap_or(Signature::test_signature()); + let signature = signature.unwrap_or_else(Signature::test_signature); let tx_signed = tx.into_signed(signature); let tx_envelope: TxEnvelope = tx_signed.into(); let encoded = tx_envelope.encoded_2718();