Skip to content

Commit

Permalink
json_message_event: avoid converting a WakuMessageHash into 0x...
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status committed Dec 13, 2024
1 parent aad18f8 commit 990847f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/events/json_message_event.nim
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ proc toWakuMessage*(self: JsonMessage): Result[WakuMessage, string] =
proc `%`*(value: Base64String): JsonNode =
%(value.string)

proc `%`*(value: WakuMessageHash): JsonNode =
%(to0xHex(value))

type JsonMessageEvent* = ref object of JsonEvent
pubsubTopic*: string
messageHash*: WakuMessageHash
Expand Down

0 comments on commit 990847f

Please sign in to comment.