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

updated v2 imports #137

Closed
wants to merge 10 commits into from
Closed

updated v2 imports #137

wants to merge 10 commits into from

Conversation

sadMaxim
Copy link
Collaborator

No description provided.

@sadMaxim sadMaxim requested a review from szg251 July 31, 2022 18:02
@@ -70,7 +70,8 @@ import Ledger.Interval (
UpperBound (UpperBound),
)
import Ledger.Scripts (Datum, DatumHash (..))
import Ledger.Scripts qualified as Scripts
--import Ledger.Scripts qualified as Scripts
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can remove the commented line

@@ -295,7 +295,7 @@ mkDummyPrivateKey (PubKey (LedgerBytes pubkey)) =
Crypto.xprv $
mconcat [dummyPrivKey, dummyPrivKeySuffix, pubkeyBS, dummyChainCode]

serialiseScript :: Script -> PlutusScript PlutusScriptV1
serialiseScript :: Script -> PlutusScript PlutusScriptV2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will V1 scripts keep working with this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No it won't work with V1. Core things is difference in V1/V2 ScriptContext and validatorHash

@mikekeke
Copy link
Collaborator

mikekeke commented Sep 14, 2022

Thank you for contribution!
Changes from this PR were migrated to PR for newer revision: #151

@mikekeke mikekeke closed this Sep 14, 2022
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.

3 participants