Skip to content

Commit

Permalink
Merge pull request #5358 from BitGo/BTC-0.add-example.fix
Browse files Browse the repository at this point in the history
fix: add closing parens in descriptor example
  • Loading branch information
OttoAllmendinger authored Jan 10, 2025
2 parents ec076c8 + 4db2b1c commit c5cfd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ts/create-descriptor-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function main() {
// here is a 2of3 multisig descriptor for the backup key and BitGo key
descriptor.createNamedDescriptorWithSignature(
'MultiSigWsh',
`wsh(multi(2,${xpubs.map((xpub) => `${xpub}/*`).join(',')})`,
`wsh(multi(2,${xpubs.map((xpub) => `${xpub}/*`).join(',')}))`,
userKey
),
// equivalent to the above, but returns two descriptors (external and internal)
Expand Down

0 comments on commit c5cfd9b

Please sign in to comment.