Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

useContractSchemaRpc: Parse schema based on module version #45

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

bisgardo
Copy link
Contributor

@bisgardo bisgardo commented Aug 7, 2023

Purpose

Make fetching/parsing of contract schema more precise based on the module version information that is now exposed by the gRPC client.

This in turn also documents the relationship between module and schema versions.

Changes

Use module version to determine what custom sections to look for and add comments explaining the expected results.

This doesn't change existing behavior, but it's a little more precise and provides a kind of documentation of the relationship between module and schema versions.
@bisgardo
Copy link
Contributor Author

bisgardo commented Aug 7, 2023

Keeping as draft until #42 is merged.

@bisgardo bisgardo marked this pull request as ready for review August 7, 2023 09:11
@bisgardo bisgardo merged commit 5f0da43 into main Aug 7, 2023
1 check passed
@bisgardo bisgardo deleted the contractupdate/revise-schema-fetch branch August 7, 2023 11:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants