-
Notifications
You must be signed in to change notification settings - Fork 463
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
Add integerToByteString and byteStringToInteger to PlutusV2 at PV10 #6056
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but scary!
Map.filterWithKey (const . alreadyIntroduced) builtinsIntroducedIn | ||
where | ||
builtinAvailableIn :: (PlutusLedgerLanguage, MajorProtocolVersion) -> Bool | ||
builtinAvailableIn (introducedInLv,introducedInPv) = | ||
alreadyIntroduced :: (PlutusLedgerLanguage, MajorProtocolVersion) -> Bool | ||
alreadyIntroduced (introducedInLv,introducedInPv) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing that.
@kwxm you were going to take a look at it, did you manage to do it in the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kwxm you were going to take a look at it, did you manage to do it in the end?
A look at what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the idea of replacing takeWhileAntitone
with filterWithKey
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see how the highlighted diff and my comment were really confusing. Sorry!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the idea of replacing
takeWhileAntitone
withfilterWithKey
here.
I have no memory of that at all!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See this thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, this whole Versions module needs some rework.
This can be used by e2e testing to verify that adding new builtins to existing ledger languages actually works. Only adding these two for now to make the change minimal; more primitives can be added to V1 and V2 later.