mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add TransactionSigned::new fns (#12768)
This commit is contained in:
@ -33,7 +33,7 @@ pub fn rng_transaction(rng: &mut impl rand::RngCore) -> TransactionSigned {
|
||||
});
|
||||
let signature = Signature::new(U256::default(), U256::default(), true);
|
||||
|
||||
TransactionSigned::from_transaction_and_signature(request, signature)
|
||||
TransactionSigned::new_unhashed(request, signature)
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
|
||||
@ -132,10 +132,7 @@ async fn test_sending_invalid_transactions() {
|
||||
value: Default::default(),
|
||||
input: Default::default(),
|
||||
};
|
||||
let tx = TransactionSigned::from_transaction_and_signature(
|
||||
tx.into(),
|
||||
Signature::test_signature(),
|
||||
);
|
||||
let tx = TransactionSigned::new_unhashed(tx.into(), Signature::test_signature());
|
||||
peer0.network().send_transactions(*peer1.peer_id(), vec![Arc::new(tx)]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user