feat(transactions): add reconstructEncodedTransactionFromOriginalTransaction to transactions package#1475
Conversation
…m original transaction
…alletAccountSigner and update tests
|
|
Hi there, just having a quick first look at this PR and whilst the code extraction is trivial, the tests don't seem at all consistent with the rest of the code base. For instance, if you look at the typetests, you'll see patterns that we just don't use anywhere in the repo (e.g. |
Problem
The logic to determine the correct lifetime (blockhash vs durable nonce) previously existed only inside the React useWalletAccountTransactionSigner hook and was not reusable.
Summary of Changes
reconstructEncodedTransactionFromOriginalTransactionto the transactions packageuseWalletAccountTransactionSignerto use the helperFixes #1466