Skip to content

Commit ea212ff

Browse files
committed
0.2.14 Release
1 parent f2a504f commit ea212ff

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
```kotlin
1313
dependencies {
14-
implementation("org.ton:ton-kotlin:0.2.13")
14+
implementation("org.ton:ton-kotlin:0.2.14")
1515
}
1616
```
1717

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ val isCI = System.getenv("CI") == "true"
1717

1818
allprojects {
1919
group = "org.ton"
20-
version = "0.2.13"
20+
version = "0.2.14"
2121

2222
apply(plugin = "kotlin-multiplatform")
2323
apply(plugin = "kotlinx-serialization")

ton-kotlin-bigint/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kotlin {
33
val commonMain by getting {
44
dependencies {
55
implementation(libs.serialization.json)
6-
implementation("com.ionspin.kotlin:bignum:0.3.7")
76
}
87
}
98
val commonTest by getting
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.ton.contract.wallet
2+
3+
import kotlinx.coroutines.runBlocking
4+
import org.ton.api.pk.PrivateKeyEd25519
5+
import kotlin.test.Test
6+
7+
class WalletTest {
8+
@Test
9+
fun test(): Unit = runBlocking {
10+
val wallet = WalletV4R2Contract(PrivateKeyEd25519(ByteArray(32) { 0x00 }).publicKey())
11+
println(wallet.address.toString(
12+
userFriendly = true
13+
))
14+
}
15+
}

ton-kotlin-contract/src/jvmTest/kotlin/WalletV4Example.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ suspend fun main(args: Array<String>) {
1717

1818
val liteApi = liteClient().liteApi
1919
val privateKey =
20-
PrivateKeyEd25519(Mnemonic.toSeed(mnemonics.toTypedArray()))
20+
PrivateKeyEd25519(Mnemonic.toSeed(mnemonics))
2121

2222
val wallet = WalletV4R2Contract(privateKey.publicKey())
2323
println(wallet.address)

ton-kotlin-mnemonic/src/commonTest/kotlin/org/ton/mnemonic/MnemonicTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.ton.mnemonic
22

3-
import kotlinx.coroutines.runBlocking
3+
import kotlinx.coroutines.*
4+
import kotlinx.coroutines.channels.Channel
45
import org.ton.crypto.hex
56
import kotlin.test.Test
67
import kotlin.test.assertEquals

0 commit comments

Comments
 (0)