Skip to content

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
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