A nicer workaround for JS compiler wrong function name bug

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-08-08 22:05:46 +02:00
1 parent 5d61858f81
commit e997c18d1d
8 files changed
+38 -28

No files matched your search

@@ -15,7 +15,7 @@ actual typealias Sha512State = Hash.State512
actual typealias GenericHashState = ByteArray
actual class Crypto internal actual constructor() {
actual fun crypto_hash_sha256_init_spec(): Sha256State {
actual fun crypto_hash_sha256_init(): Sha256State {
val state = debug.test.Sha256State()
println("Debug")
sodium.crypto_hash_sha256_init(state)