Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions bindings/kotlin/examples/ChainId.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ fun main() = runBlocking {
println("Chain ID: $chainId")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/CoinBalances.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ fun main() = runBlocking {
println("Total Balance = $balance")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/DevInspect.kt
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/DryRunBytes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ fun main() = runBlocking {
println("Dry run result: $res")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/DynamicFields.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/Epoch.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/Example.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ fun main() = runBlocking {
)
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/Faucet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/GasSponsor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ fun main() = runBlocking {
println("Gas sponsor tx dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/GasStation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ fun main() = runBlocking {
println("Sponsored transaction was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/GenericMoveFunction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ fun main() = runBlocking {
println("Successfully called generic Move function!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}

Expand Down
1 change: 1 addition & 0 deletions bindings/kotlin/examples/GetObject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ fun main() = runBlocking {
println("BCS bytes: ${hexEncode(obj.asStruct().contents)}")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/MoveFunctions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/ObjectsByType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/OwnedObjects.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/PackageEvents.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/Pagination.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
3 changes: 2 additions & 1 deletion bindings/kotlin/examples/PrepareMergeCoins.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ fun main() = runBlocking {

println("Merge coins dry run was successful!")
} catch (e: Exception) {
println("Error: $e")
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/PrepareSendCoins.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ fun main() = runBlocking {
println("Send coins dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/PrepareSendIota.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ fun main() = runBlocking {
println("Send IOTA dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/PrepareSendIotaMulti.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ fun main() = runBlocking {
println("Send IOTA dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/PrepareSplitCoins.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ fun main() = runBlocking {
println("Split coins dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/PrepareTransferObjects.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ fun main() = runBlocking {
println("Transfer objects dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/SignSendIota.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ fun main() = runBlocking {
println("Effects: ${effects.asV1()}")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/Stake.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ fun main() = runBlocking {
println("Stake dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/TransactionsWithFunction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/TransactionsWithShared.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ fun main() = runBlocking {
}
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/TxCommandResults.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ fun main() = runBlocking {
println("Tx dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}
1 change: 1 addition & 0 deletions bindings/kotlin/examples/Unstake.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ fun main() = runBlocking {
println("Unstake dry run was successful!")
} catch (e: Exception) {
e.printStackTrace()
kotlin.system.exitProcess(1)
}
}