Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cardano-api/src/Cardano/Api/Shelley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ module Cardano.Api.Shelley
, PlutusScript (..)
, PlutusScriptOrReferenceInput (..)
, SimpleScriptOrReferenceInput (..)
, toAlonzoLanguage
, fromAlonzoLanguage
Comment on lines +140 to +141
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should replace those two function with Inject instances.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carbolymer> I disagree, I think we should keep Inject for conversions between eons; otherwise upon seeing a call to inject in the code we won't easily know what it's about.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not what is Inject for in general. It's used widely in ledger codebase for conversion between isomorphic types.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carbolymer> is the ledger a model codebase in terms of ease-of-understanding 😉?

, toPlutusData
, fromPlutusData
, toAlonzoData
Expand Down
Loading