diff --git a/README.md b/README.md index 469e99fc..55c776a1 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ```kotlin dependencies { - implementation("org.ton:ton-kotlin:0.2.3") + implementation("org.ton:ton-kotlin:0.2.4") } ``` diff --git a/build.gradle.kts b/build.gradle.kts index 0322485d..eb283c12 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,7 +17,7 @@ val isCI = System.getenv("CI") == "true" allprojects { group = "org.ton" - version = "0.2.4-SNAPSHOT" + version = "0.2.4" apply(plugin = "kotlin-multiplatform") apply(plugin = "kotlinx-serialization") diff --git a/ton-kotlin-block/src/commonMain/kotlin/org/ton/block/StateInit.kt b/ton-kotlin-block/src/commonMain/kotlin/org/ton/block/StateInit.kt index abf0fd04..0fc6a459 100644 --- a/ton-kotlin-block/src/commonMain/kotlin/org/ton/block/StateInit.kt +++ b/ton-kotlin-block/src/commonMain/kotlin/org/ton/block/StateInit.kt @@ -22,13 +22,17 @@ public data class StateInit( val library: HashMapE ) { public constructor( - code: CellRef? = null, - data: CellRef? = null, + code: Cell? = null, + data: Cell? = null, library: HashMapE = HashMapE.of(), splitDepth: UInt? = null, special: TickTock? = null ) : this( - splitDepth.toMaybe(), special.toMaybe(), code.toMaybe(), data.toMaybe(), library + splitDepth.toMaybe(), + special.toMaybe(), + code?.let { CellRef(cell = it, AnyTlbConstructor) }.toMaybe(), + data?.let { CellRef(cell = it, AnyTlbConstructor) }.toMaybe(), + library ) override fun toString(): String = "split_depth:$splitDepth special:$special code:$code data:$data library:$library"