Skip to content

Commit

Permalink
Add @JsonClass to EncryptedPayload
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanOS committed Aug 4, 2022
1 parent 27a6930 commit 4a32c74
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4a32c74

Please sign in to comment.