Skip to content

Commit

Permalink
add 'mint' field to Mary transaction's body
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Mar 2, 2021
1 parent f0a37f5 commit 69abe6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/static/ogmios.wsp.json
Expand Up @@ -1215,6 +1215,7 @@
, "fee": { "$ref": "#/definitions/Lovelace" }
, "validityInterval": { "$ref": "#/definitions/ValidityInterval" }
, "update": { "$ref": "#/definitions/Update[Shelley]" }
, "mint": { "$ref": "#/definitions/Value" }
}
}
, "witness":
Expand Down
5 changes: 4 additions & 1 deletion ogmios-server/src/Ogmios/Data/Json/Mary.hs
Expand Up @@ -129,7 +129,7 @@ encodeTxBody
:: Crypto crypto
=> MA.TxBody (MaryEra crypto)
-> Json
encodeTxBody (MA.TxBody inps outs certs wdrls fee validity updates _ _) = encodeObject
encodeTxBody (MA.TxBody inps outs certs wdrls fee validity updates _ mint) = encodeObject
[ ( "inputs"
, encodeFoldable Shelley.encodeTxIn inps
)
Expand All @@ -151,6 +151,9 @@ encodeTxBody (MA.TxBody inps outs certs wdrls fee validity updates _ _) = encode
, ( "update"
, encodeStrictMaybe Shelley.encodeUpdate updates
)
, ( "mint"
, encodeValue mint
)
]

encodeTxOut
Expand Down

0 comments on commit 69abe6d

Please sign in to comment.