Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bindings/kotlin/examples/CoinBalances.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ fun main() = runBlocking {
"0xb14f13f5343641e5b52d144fd6f106a7058efe2f1ad44598df5cda73acf0101f",
)

error("panic")
val coins = client.coins(address)
for (coin in coins.data) {
println("Coin = 0x${coin.id().toHex()}, Coin Type = ${coin.coinType().asStructTag()}, Balance = ${coin.balance()}")
Expand All @@ -22,6 +23,6 @@ fun main() = runBlocking {
println("Total Balance = $balance")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
throw e
}
}
Loading