Skip to content

Commit

Permalink
Merge pull request #56 from getsafle/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
sshubhamagg committed Jan 30, 2024
2 parents 41f815d + edfdb80 commit 14bfc42
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@

### 2.0.6 (2024-01-23)

- Added proxy URL to prevent CORS issue
- Added proxy URL to prevent CORS issue

### 2.0.7 (2024-01-30)

- Added generic network parameter in sign transaction
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getsafle/vault-bitcoin-controller",
"version": "2.0.6",
"version": "2.0.7",
"description": "",
"engines": {
"node": ">= 10"
Expand Down
2 changes: 1 addition & 1 deletion src/helper/signTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function signTransaction(from, to, amountToSend, URL, privateKey, satPerBy
psbt.addOutput({address: from, value: change});

for (let i = 0; i < inputs.length; i++) {
psbt.signInput(i, bitcoin.ECPair.fromWIF(privateKey, bitcoin.networks.testnet))
psbt.signInput(i, bitcoin.ECPair.fromWIF(privateKey, network))
}

const isValid = psbt.validateSignaturesOfAllInputs()
Expand Down

0 comments on commit 14bfc42

Please sign in to comment.