From 4a32c744e31f562ad3a4886126b20ab5ea3b3411 Mon Sep 17 00:00:00 2001 From: Prashan Dharmasena Date: Thu, 4 Aug 2022 19:09:17 -0400 Subject: [PATCH] Add @JsonClass to EncryptedPayload --- .../main/kotlin/org/walletconnect/impls/MoshiPayloadAdapter.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/main/kotlin/org/walletconnect/impls/MoshiPayloadAdapter.kt b/lib/src/main/kotlin/org/walletconnect/impls/MoshiPayloadAdapter.kt index 06a4a14..ec41bc5 100644 --- a/lib/src/main/kotlin/org/walletconnect/impls/MoshiPayloadAdapter.kt +++ b/lib/src/main/kotlin/org/walletconnect/impls/MoshiPayloadAdapter.kt @@ -1,6 +1,7 @@ package org.walletconnect.impls import com.squareup.moshi.Json +import com.squareup.moshi.JsonClass import com.squareup.moshi.Moshi import com.squareup.moshi.Types import org.bouncycastle.crypto.digests.SHA256Digest @@ -223,7 +224,7 @@ class MoshiPayloadAdapter(moshi: Moshi) : Session.PayloadAdapter { "params" to params ) - // TODO: @JsonClass(generateAdapter = true) + @JsonClass(generateAdapter = true) data class EncryptedPayload( @Json(name = "data") val data: String, @Json(name = "iv") val iv: String,