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:
Claude
2026-06-09 20:45:17 +00:00
parent 39d36441d4
commit a6e9439c6d
2 changed files with 2 additions and 2 deletions
@@ -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>> {
@@ -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>> {