Skip to content

Commit f3ecac2

Browse files
authored
Merge pull request #2480 from IntersectMBO/develop
fix(#2478): fix double signing of transaction
2 parents 51fd5c1 + c25912d commit f3ecac2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ changes.
3939
- Fix removing a child (link) when is not registed in DOM [Issue 2398](https://github.com/IntersectMBO/govtool/issues/2398)
4040
- Fix blank screen on DRep delegation when UTXos are missing [Issue 2408](https://github.com/IntersectMBO/govtool/issues/2408)
4141
- Fix broken guides links [Issue 2417](https://github.com/IntersectMBO/govtool/issues/2417)
42+
- Fix double signing of transaction [Issue 2478](https://github.com/IntersectMBO/govtool/issues/2478)
4243

4344
### Changed
4445

govtool/frontend/src/context/wallet.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,9 @@ const CardanoProvider = (props: Props) => {
674674
// Make a full transaction, passing in empty witness set
675675
const tx = Transaction.new(txBody, transactionWitnessSet);
676676
// Ask wallet to to provide signature (witnesses) for the transaction
677-
let txVkeyWitnesses;
678-
679-
txVkeyWitnesses = await walletApi.signTx(tx.to_hex(), true);
680677

681678
// Create witness set object using the witnesses provided by the wallet
682-
txVkeyWitnesses = TransactionWitnessSet.from_bytes(
679+
const txVkeyWitnesses = TransactionWitnessSet.from_bytes(
683680
Buffer.from(await walletApi.signTx(tx.to_hex(), true), "hex"),
684681
);
685682
const vkeys = txVkeyWitnesses.vkeys();

0 commit comments

Comments
 (0)