Skip to content

Commit 7507fe7

Browse files
committed
fix: Update example data path to project root
1 parent c13a681 commit 7507fe7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/src/main/kotlin/MultisigTransaction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fun getNewWallet(script: ActiveWalletScriptType, network: Network): Wallet {
153153

154154
fun generateUniquePersistenceFilePath(): String {
155155
// Resolve the absolute path to the fixed `examples/data` directory
156-
val projectRoot = Paths.get("").toAbsolutePath().parent.resolve("examples")
156+
val projectRoot = Paths.get(".").toAbsolutePath().parent.resolve("examples")
157157
val persistenceDirectory = projectRoot.resolve("data").toFile()
158158

159159
persistenceDirectory.apply {

examples/src/main/kotlin/WalletSetupBip32.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fun createScriptAppropriateDescriptor(
6666
}
6767
fun getPersistenceFilePath(): String {
6868
// Resolve absolute path to the fixed `examples/data` directory
69-
val projectRoot = Paths.get("").toAbsolutePath().parent.resolve("examples")
69+
val projectRoot = Paths.get(".").toAbsolutePath().parent.resolve("examples")
7070
val persistenceDirectory = projectRoot.resolve("data").toFile()
7171
val persistenceFilePath = projectRoot.resolve("data/bdk_persistence.sqlite").toString()
7272

0 commit comments

Comments
 (0)