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

Core: Fix return RTC flag, Events Disable flag #160

Merged
merged 3 commits into from
Jul 11, 2024
Merged

Conversation

jmcardon
Copy link
Member

@jmcardon jmcardon commented Jul 3, 2024

Rename progn to do

pact>(do 1 2 3)
3

Factor out common code between CEK/Direct

PR checklist:

  • Test coverage for the proposed changes
  • PR description contains example output from repl interaction or a snippet from unit test output

@@ -2,10 +2,11 @@ PR checklist:

* [ ] Test coverage for the proposed changes
* [ ] PR description contains example output from repl interaction or a snippet from unit test output
* [ ] Any changes that could be relevant to users [have been recorded in the changelog](https://github.com/kadena-io/pact-core/blob/master/CHANGELOG.md)
* [ ] (If Relevant) New builtins have a FV translation
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* [ ] (If Relevant) New builtins have a FV translation

-> EvalM e b i ()
emitEvent info pe = findCallingModule >>= \case
Just mn -> do
-- Todo: ++ definitely feels suboptimal, especially for gas.
Copy link
Member

Choose a reason for hiding this comment

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

consider moving the comment to emitEventUnsafe, as emitEvent does not use ++.

Rename progn to do
Factor out common code between CEK/Direct
Fix env-events to reverse the event order on emission
Make Pact.Core.IR.Term exports qualified
@jmcardon jmcardon merged commit 27cd9d8 into master Jul 11, 2024
3 checks passed
@jmcardon jmcardon deleted the jose/potpourri branch August 27, 2024 15:59
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.

2 participants