Skip to content

Commit

Permalink
Clean up samples in Kotlin API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Feb 2, 2023
1 parent 07aa1f8 commit 4ca7919
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions api-docs/kotlin/src/test/kotlin/org/bitcoindevkit/Samples.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ fun addressIndexSample() {
databaseConfig = DatabaseConfig.Memory
)

fun getLastUnusedAddress(): AddressInfo {
return wallet.getAddress(AddressIndex.LastUnused)
}

fun peekAddress100(): AddressInfo {
return wallet.getAddress(AddressIndex.Peek(100u))
}
Expand All @@ -89,11 +85,7 @@ fun addressInfoSample() {
databaseConfig = DatabaseConfig.Memory
)

fun getLastUnusedAddress(): AddressInfo {
return wallet.getAddress(AddressIndex.New)
}

val newAddress: AddressInfo = getLastUnusedAddress()
val newAddress: AddressInfo = wallet.getAddress(AddressIndex.New)

println("New address at index ${newAddress.index} is ${newAddress.address}")
}
Expand Down

0 comments on commit 4ca7919

Please sign in to comment.