Correct viewkey field

This commit is contained in:
Rene Vergara 2022-07-20 10:24:39 -05:00
parent 00f2f2003a
commit 27a2fab424
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
1 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ instance ToJSON Owner where
, "invoices" .= inv
, "expiration" .= eTs
, "payconf" .= pc
, "viewKey" .= vk
, "viewkey" .= vk
]
Nothing ->
object
@ -98,7 +98,7 @@ instance ToJSON Owner where
, "invoices" .= inv
, "expiration" .= eTs
, "payconf" .= pc
, "viewKey" .= vk
, "viewkey" .= vk
]
instance FromJSON Owner where
@ -127,7 +127,7 @@ instance FromJSON Owner where
inv <- obj .: "invoices"
ets <- obj .: "expiration"
pc <- obj .:? "payconf"
vk <- obj .:? "viewKey"
vk <- obj .:? "viewkey"
pure $
Owner
(if not (null i)