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

Fix criteria for translating a function to an action #17

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

bugarela
Copy link
Collaborator

@bugarela bugarela commented Apr 9, 2024

Hello :octocat:

Closes #15

We now only translate functions with DepsMut as actions, while functions with Deps are translated to pure helper definitions.

This doesn't have an impact on any CTF contract (so, in our snapshot tests), but it fixes a problem that both @p-offtermatt and @ivan-gavran hit. I manually checked that this fixes those.

@bugarela bugarela force-pushed the gabriela/fix-action-criteria branch from 042f7d6 to ef1a9ef Compare April 9, 2024 14:03
@bugarela bugarela requested a review from p-offtermatt April 9, 2024 15:02
Copy link
Member

@p-offtermatt p-offtermatt left a comment

Choose a reason for hiding this comment

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

LGTM. would it be worth it to just add either my or Ivans example to the snapshot tests?

@bugarela
Copy link
Collaborator Author

LGTM. would it be worth it to just add either my or Ivans example to the snapshot tests?

It would be helpful, but your repo is private (and I don't know for how long this one will stay private), and Ivan's is way too big, so I think not worth it for now.

@bugarela bugarela merged commit 70f7b2e into main Apr 10, 2024
1 check passed
@bugarela bugarela deleted the gabriela/fix-action-criteria branch April 10, 2024 11:41
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.

Some non-actions are being translated as actions
2 participants