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

Make source.hash non-optional, remove metadata-only #104

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Nov 10, 2020

No description provided.

Comment on lines -229 to +219
dest_wasm,
dest_wasm: Some(dest_wasm),
Copy link
Contributor

Choose a reason for hiding this comment

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

Useful to be an Option?

Copy link
Collaborator Author

@cmichi cmichi Nov 10, 2020

Choose a reason for hiding this comment

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

So this is mostly used for cargo contract check (and previously metadata-only). check must never result in a dest_wasm in the target directory. So for the GenerationResult object dest_wasm was made an Option. There is also an assert for is_none() in the cargo contract check logic.

Copy link
Contributor

Choose a reason for hiding this comment

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

okay cool, thanks!

Copy link
Contributor

@Robbepop Robbepop left a comment

Choose a reason for hiding this comment

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

LGTM!

@ascjones ascjones merged commit cf00f12 into master Nov 10, 2020
@ascjones ascjones mentioned this pull request Nov 27, 2020
@HCastano HCastano deleted the cmichi-remove-metadata-only branch July 29, 2022 17:04
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.

3 participants