Skip to content

Commit

Permalink
0.2.14 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypfau committed Feb 7, 2023
1 parent f2a504f commit ea212ff
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

```kotlin
dependencies {
implementation("org.ton:ton-kotlin:0.2.13")
implementation("org.ton:ton-kotlin:0.2.14")
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ val isCI = System.getenv("CI") == "true"

allprojects {
group = "org.ton"
version = "0.2.13"
version = "0.2.14"

apply(plugin = "kotlin-multiplatform")
apply(plugin = "kotlinx-serialization")
Expand Down
1 change: 0 additions & 1 deletion ton-kotlin-bigint/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kotlin {
val commonMain by getting {
dependencies {
implementation(libs.serialization.json)
implementation("com.ionspin.kotlin:bignum:0.3.7")
}
}
val commonTest by getting
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.ton.contract.wallet

import kotlinx.coroutines.runBlocking
import org.ton.api.pk.PrivateKeyEd25519
import kotlin.test.Test

class WalletTest {
@Test
fun test(): Unit = runBlocking {
val wallet = WalletV4R2Contract(PrivateKeyEd25519(ByteArray(32) { 0x00 }).publicKey())
println(wallet.address.toString(
userFriendly = true
))
}
}
2 changes: 1 addition & 1 deletion ton-kotlin-contract/src/jvmTest/kotlin/WalletV4Example.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ suspend fun main(args: Array<String>) {

val liteApi = liteClient().liteApi
val privateKey =
PrivateKeyEd25519(Mnemonic.toSeed(mnemonics.toTypedArray()))
PrivateKeyEd25519(Mnemonic.toSeed(mnemonics))

val wallet = WalletV4R2Contract(privateKey.publicKey())
println(wallet.address)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.ton.mnemonic

import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.Channel
import org.ton.crypto.hex
import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down

0 comments on commit ea212ff

Please sign in to comment.