Skip to content

Commit 40050b9

Browse files
authored
Merge pull request #2481 from IntersectMBO/test
fix(#2478): fix double signing of transaction
2 parents 1d08727 + f3ecac2 commit 40050b9

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
@@ -673,12 +673,9 @@ const CardanoProvider = (props: Props) => {
673673
// Make a full transaction, passing in empty witness set
674674
const tx = Transaction.new(txBody, transactionWitnessSet);
675675
// Ask wallet to to provide signature (witnesses) for the transaction
676-
let txVkeyWitnesses;
677-
678-
txVkeyWitnesses = await walletApi.signTx(tx.to_hex(), true);
679676

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

0 commit comments

Comments
 (0)