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: fix error on decoding service type #731

Merged
merged 8 commits into from
Jun 28, 2023

Conversation

chenyan-dfinity
Copy link
Contributor

@chenyan-dfinity chenyan-dfinity commented Jun 27, 2023

Description

Fix https://forum.dfinity.org/t/illegal-service-definition-services-can-only-contain-functions/17609

The problem is that when decoding the type table, if function types come after the service type in the type table, we cannot check whether the service type contains only function types. The fix is to parse all function types first.

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@chenyan-dfinity chenyan-dfinity requested a review from a team as a code owner June 27, 2023 22:44
@krpeacock krpeacock merged commit 8a9b6cf into dfinity:main Jun 28, 2023
14 checks passed
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.

None yet

2 participants