chore(docs): fix lint errors and remove unsed packages

This commit is contained in:
sofinico
2025-05-06 17:15:20 +02:00
parent f8739f7f17
commit fef755490f
2 changed files with 4 additions and 5 deletions

View File

@@ -23,9 +23,9 @@ python -m http.server 8080
Open `http://localhost:8080` in your browser to view the documentation.
## README Code Snippets
## README Examples
Version history of the README code snippets is tracked at [`../examples/code-snippets`](../examples/code-snippets).
Version history of the README examples is tracked at [`../examples/code-snippets`](../examples/code-snippets).
### Dependencies
@@ -34,7 +34,5 @@ To read or write `examples/code-snippets`, you may need to temporarily install d
```bash
pnpm install -D ethers
pnpm install -D bitcoinjs-lib
pnpm install -D ecpair bip32
pnpm install -D tiny-secp256k1
pnpm install -D axios
```

View File

@@ -12,7 +12,7 @@ import {
toSDKNumberOrUndefined,
BridgeFromBitcoinInput,
} from "../../../src/index"
import { Psbt, payments, Signer, networks } from "bitcoinjs-lib"
import { Psbt, payments, networks } from "bitcoinjs-lib"
import axios from "axios"
const sdk = new BroSDK()
@@ -99,6 +99,7 @@ const signPsbt: BridgeFromBitcoinInput["signPsbt"] = async tx => {
for (const index of tx.signInputs) {
// Get the input's sighash
const input = psbt.data.inputs[index]
// @ts-ignore
const sighash = input.sighashType
// Sign the transaction using the mocked signTx function