File tree Expand file tree Collapse file tree
flow/src/commonMain/kotlin/org/onflow/flow/websocket Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ allprojects {
2222 }
2323
2424 group = " org.onflow.flow"
25- val defaultVersion = " 0.0.21 "
25+ val defaultVersion = " 0.0.22 "
2626 version = System .getenv(" GITHUB_REF" )?.split(' /' )?.last() ? : defaultVersion
2727}
2828
Original file line number Diff line number Diff line change @@ -6,9 +6,11 @@ import kotlinx.serialization.json.JsonElement
66import org.onflow.flow.models.Event
77import org.onflow.flow.models.TransactionResult
88
9- @Serializable
10- sealed class FlowWebSocketMessage {
11- abstract val subscriptionId: String?
9+ /* *
10+ * Base interface for WebSocket messages to avoid sealed class ASM transformation issues
11+ */
12+ interface FlowWebSocketMessage {
13+ val subscriptionId: String?
1214}
1315
1416@Serializable
@@ -18,7 +20,7 @@ data class FlowWebSocketRequest(
1820 val action : String ,
1921 val topic : String? = null ,
2022 val arguments : Map <String , JsonElement >? = null
21- ) : FlowWebSocketMessage()
23+ ) : FlowWebSocketMessage
2224
2325@Serializable
2426data class FlowWebSocketResponse (
@@ -28,7 +30,7 @@ data class FlowWebSocketResponse(
2830 val topic : String? = null ,
2931 val payload : JsonElement ? = null ,
3032 val error : FlowWebSocketError ? = null
31- ) : FlowWebSocketMessage()
33+ ) : FlowWebSocketMessage
3234
3335@Serializable
3436data class BlockEventPayload (
You can’t perform that action at this time.
0 commit comments