feat: add TransactionSigned::new fns (#12768)

This commit is contained in:
Matthias Seitz
2024-11-22 11:37:34 +01:00
committed by GitHub
parent 7d24aa40e8
commit 3765ae2444
14 changed files with 55 additions and 57 deletions

View File

@ -102,8 +102,7 @@ impl TestBlockBuilder {
let signature_hash = tx.signature_hash();
let signature = self.signer_pk.sign_hash_sync(&signature_hash).unwrap();
TransactionSigned::from_transaction_and_signature(tx, signature)
.with_signer(self.signer)
TransactionSigned::new_unhashed(tx, signature).with_signer(self.signer)
};
let num_txs = rng.gen_range(0..5);