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

Double substitute the Nockma functions placeholder in the main function #2715

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Apr 9, 2024

In the nockma compilation backend we compile functions with a an atom with hint functionsPlaceholder where the functions library is expected to be. After the module is compiled we now have the functions library to substitute.

The first substitution replaces the functionsPlaceholder in the main function with the functions library.

This PR introduces a second substitution that replaces the functionsPlaceholder atoms in the functions library that were introduced in the first subsitution.

This fix is sufficient to get the transaction example running in the Anoma system.

First substitution is for the functionsLibrary placeholder in the main
function, the second substitution is to subsitute the placeholders in
the functions library.
@paulcadman paulcadman added this to the 0.6.2 milestone Apr 10, 2024
@paulcadman paulcadman marked this pull request as ready for review April 10, 2024 09:12
@paulcadman paulcadman merged commit af2a8d4 into main Apr 10, 2024
5 of 8 checks passed
@paulcadman paulcadman deleted the funcs-lib-subst branch April 10, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants