Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd committed Jan 24, 2024
1 parent 5a9cb48 commit 928767f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/deposit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Network } from '@scrow/tapscript'
import { parse_deposit } from './parse.js'
import { get_return_script } from './return.js'

Expand All @@ -23,6 +22,7 @@ import {
DepositData,
DepositState,
OracleTxStatus,
Network
} from '../types/index.js'

/**
Expand Down
7 changes: 5 additions & 2 deletions src/lib/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from '@cmdcode/musig2'

import {
Network,
SigHashOptions,
TapContext,
TxBytes,
Expand Down Expand Up @@ -41,7 +40,8 @@ import {
SignerAPI,
OracleTxIn,
TxOutput as SpendOut,
DepositData
DepositData,
Network
} from '../types/index.js'

import * as assert from '../assert.js'
Expand All @@ -56,6 +56,9 @@ export function get_address (
tapkey : Bytes,
network ?: Network
) {
if (network === 'mutiny') {
network = 'signet'
}
return P2TR.encode(tapkey, network)
}

Expand Down
5 changes: 4 additions & 1 deletion test/client/scripts/close_demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Buff } from '@cmdcode/buff'
import { Signer, Wallet } from '@cmdcode/signer'
import { print_banner } from '@scrow/test'

import { Network, WitnessTemplate } from "@scrow/core"
import {
Network,
WitnessTemplate
} from '@scrow/core'

import {
EscrowClient,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"@cmdcode/buff" "^2.2.4"
"@cmdcode/crypto-tools" "^2.6.10"

"@cmdcode/[email protected].10":
version "1.3.10"
resolved "https://registry.yarnpkg.com/@cmdcode/signer/-/signer-1.3.10.tgz#0b4ade4280249e824c10dd177c07e24e5d6608ca"
integrity sha512-PDSzZT0NRMWt5Z9uMqk+n3Y4HxD2yz7cwGWaw1igsgQikbW1eP8RDLsO/F7kJJPgESLLFbVHU9d1O8yRlsVtrA==
"@cmdcode/[email protected].11":
version "1.3.11"
resolved "https://registry.yarnpkg.com/@cmdcode/signer/-/signer-1.3.11.tgz#3d76cebdb01e0ff976ca0a0eb891cfe7c1fdc9e0"
integrity sha512-knsG0ilHzKEcIB7mh0iYaQRVVXUIbpxsgdkDTOgg+lvKsYrf/6hsJ7+mOiB4dJUaz7mlr6EUtq58XuVDToRazA==
dependencies:
"@cmdcode/buff" "^2.2.4"
"@cmdcode/crypto-tools" "^2.7.5"
Expand Down

0 comments on commit 928767f

Please sign in to comment.