Skip to content

chore: change proto generate script to apply compatibility patch #187

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeronimoalbi
Copy link
Member

This is a follow up to #184

PR changes the proto generate script to apply the changes from #184 to the generated files.

If merged, this is intended as a short term solution until the underlying Amino compatibility issue is discussed and solved.

The caveat of this patch based approach is that it might require some added effort to keep the patch file updated.

# This is a short term solution that potentially requires maintaining the patch updated.
if [ $? -eq 0 ]; then
# First prettify generated code to allow the patch to be applied
./node_modules/.bin/prettier --write ${OUT_DIR}/gno/vm.ts && \
Copy link
Member Author

Choose a reason for hiding this comment

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

The proto generated code seems to have been prettified, without this extra step the changes from #184 don't apply successfully right after the gno/vm.ts file is generated

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.

1 participant