Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #105 from anton-rs/refcell/signed-tx-construction
Browse files Browse the repository at this point in the history
fix: Signed Transaction Instantiation
  • Loading branch information
refcell authored Aug 28, 2023
2 parents 19d082d + 4dfb9fa commit 06e503d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/primitives/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1184,10 +1184,7 @@ impl<'a> arbitrary::Arbitrary<'a> for TransactionSigned {
signature
};

let mut tx = TransactionSigned { hash: Default::default(), signature, transaction };
tx.hash = tx.recalculate_hash();

Ok(tx)
Ok(TransactionSigned::from_transaction_and_signature(transaction, signature))
}
}

Expand Down

0 comments on commit 06e503d

Please sign in to comment.