diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnection.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnection.kt index 975813b0..c30f3f89 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnection.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnection.kt @@ -265,7 +265,7 @@ open class WsConnection( val calls = rpcSend .asFlux() .map { - Unpooled.wrappedBuffer(Global.objectMapper.writeValueAsBytes(it)) + Unpooled.wrappedBuffer(it.toJson()) } return outbound.send(