mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 01:07:46 +00:00
fix: use multiplatform hex padding in room state tests
String.format is JVM-only and broke the iOS Klib compile of commonTest. Replace "%064x".format(...) with toString(16).padStart(64, '0').
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ class RoomReactionsStateTest {
|
||||
to: String?,
|
||||
content: String,
|
||||
createdAt: Long,
|
||||
id: String = "%064x".format(nextEventId++),
|
||||
id: String = (nextEventId++).toString(16).padStart(64, '0'),
|
||||
): ReactionEvent {
|
||||
val tags =
|
||||
buildList<Array<String>> {
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class RoomZapsStateTest {
|
||||
from: String,
|
||||
to: String?,
|
||||
createdAt: Long,
|
||||
id: String = "%064x".format(nextEventId++),
|
||||
id: String = (nextEventId++).toString(16).padStart(64, '0'),
|
||||
): LnZapEvent {
|
||||
val tags =
|
||||
buildList<Array<String>> {
|
||||
|
||||
Reference in New Issue
Block a user