Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON instance for AlonzoGenesis #2627

Merged
merged 2 commits into from Jan 24, 2022
Merged

JSON instance for AlonzoGenesis #2627

merged 2 commits into from Jan 24, 2022

Conversation

JaredCorduan
Copy link
Contributor

taken from cardano-node

closes #2452

taken from cardano-node

closes #2452
parseJSON = Aeson.withObject "Alonzo Genesis" $ \o -> do
coinsPerUTxOWord <-
o .: "lovelacePerUTxOWord"
<|> o .: "adaPerUTxOWord" --TODO: deprecate
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Jimbo4350 - should I remove adaPerUTxOWord?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah it looks like we can remove this, there is no trace of it in the node repo.

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

LGTM!

parseJSON = Aeson.withObject "Alonzo Genesis" $ \o -> do
coinsPerUTxOWord <-
o .: "lovelacePerUTxOWord"
<|> o .: "adaPerUTxOWord" --TODO: deprecate
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah it looks like we can remove this, there is no trace of it in the node repo.

@JaredCorduan JaredCorduan merged commit 13f2cb1 into master Jan 24, 2022
@iohk-bors iohk-bors bot deleted the jc/alonzo-genesis-json branch January 24, 2022 20:59
@JaredCorduan
Copy link
Contributor Author

oh embarrassing, I forgot to smash the commits 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move AlonzoGenesis From/ToJSON instances from cardano-node to cardano-ledger-specs
2 participants