Skip to content

Commit

Permalink
fix(#2478): fix double signing of transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Dec 6, 2024
1 parent fb87566 commit 0cde028
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ changes.

### Fixed

-
- Fix double signing of transaction [Issue 2478](https://github.com/IntersectMBO/govtool/issues/2478)

### Changed

Expand Down
5 changes: 1 addition & 4 deletions govtool/frontend/src/context/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -674,12 +674,9 @@ const CardanoProvider = (props: Props) => {
// Make a full transaction, passing in empty witness set
const tx = Transaction.new(txBody, transactionWitnessSet);
// Ask wallet to to provide signature (witnesses) for the transaction
let txVkeyWitnesses;

txVkeyWitnesses = await walletApi.signTx(tx.to_hex(), true);

// Create witness set object using the witnesses provided by the wallet
txVkeyWitnesses = TransactionWitnessSet.from_bytes(
const txVkeyWitnesses = TransactionWitnessSet.from_bytes(
Buffer.from(await walletApi.signTx(tx.to_hex(), true), "hex"),
);
const vkeys = txVkeyWitnesses.vkeys();
Expand Down

0 comments on commit 0cde028

Please sign in to comment.