From 424338eb8ea559696f657fee9c03746866d5b750 Mon Sep 17 00:00:00 2001 From: Termina1 Date: Mon, 9 Jan 2023 16:21:51 +0200 Subject: [PATCH] fix serializing to json of json rpc request --- .../emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt index 6f0b0134..7d6315d1 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnectionImpl.kt @@ -259,7 +259,7 @@ open class WsConnectionImpl( val calls = rpcSend .asFlux() .map { - Unpooled.wrappedBuffer(Global.objectMapper.writeValueAsBytes(it)) + Unpooled.wrappedBuffer(it.toJson()) } return outbound.send(