Skip to content

Commit

Permalink
Enable withSignedTransaction for signing and sending payloads (#10714)
Browse files Browse the repository at this point in the history
* Enable `withSignedTransaction` for signing and sending payloads

* remove option from `execute`
  • Loading branch information
TarikGul authored Jul 1, 2024
1 parent 04b033c commit ce4153e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-signer/src/TxSigned.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function TxSigned ({ className, currentItem, isQueueSubmit, queueSize, requestAd
if (senderInfo.signAddress) {
const [tx, [status, pairOrAddress, options, isMockSign]] = await Promise.all([
wrapTx(api, currentItem, senderInfo),
extractParams(api, senderInfo.signAddress, { nonce: -1, tip }, getLedger, setQrState)
extractParams(api, senderInfo.signAddress, { nonce: -1, tip, withSignedTransaction: true }, getLedger, setQrState)
]);

queueSetTxStatus(currentItem.id, status);
Expand All @@ -342,7 +342,7 @@ function TxSigned ({ className, currentItem, isQueueSubmit, queueSize, requestAd
if (senderInfo.signAddress) {
const [tx, [, pairOrAddress, options, isMockSign]] = await Promise.all([
wrapTx(api, currentItem, senderInfo),
extractParams(api, senderInfo.signAddress, { ...signedOptions, tip }, getLedger, setQrState)
extractParams(api, senderInfo.signAddress, { ...signedOptions, tip, withSignedTransaction: true }, getLedger, setQrState)
]);

setSignedTx(await signAsync(queueSetTxStatus, currentItem, tx, pairOrAddress, options, api, isMockSign));
Expand Down

0 comments on commit ce4153e

Please sign in to comment.