Skip to content

Commit

Permalink
Fix Byron TxOut JSON rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 authored and jutaro committed May 13, 2021
1 parent 04ae947 commit 549e82c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cardano-api/src/Cardano/Api/TxBody.hs
Expand Up @@ -286,7 +286,9 @@ instance IsCardanoEra era => ToJSON (TxOut era) where
case addrType of
ByronAddressInAnyEra ->
let hexAddr = serialiseToRawBytesHexText addr
in object [ hexAddr .= toJSON val ]
in object [ "address" .= hexAddr
, "value" .= toJSON val
]
ShelleyAddressInEra sbe ->
case sbe of
ShelleyBasedEraShelley ->
Expand Down

0 comments on commit 549e82c

Please sign in to comment.