Fixes quartz test cases for the new structure

This commit is contained in:
Vitor Pamplona
2025-07-25 12:41:43 -04:00
parent 39152d4e90
commit e7a9890eb1
5 changed files with 56 additions and 61 deletions
@@ -26,13 +26,12 @@ import java.util.UUID
class BunkerResponseEvent(
id: String = UUID.randomUUID().toString(),
val event: Event,
) : com.vitorpamplona.quartz.nip46RemoteSigner.BunkerResponse(id, event.toJson(), null) {
) : BunkerResponse(id, event.toJson(), null) {
companion object {
fun parse(
id: String,
result: String,
error: String? = null,
) = com.vitorpamplona.quartz.nip46RemoteSigner
.BunkerResponseEvent(id, Event.fromJson(result))
) = BunkerResponseEvent(id, Event.fromJson(result))
}
}