Skip to content

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

Merged
ascjones merged 1 commit into
masterfrom
cmichi-remove-metadata-only
Nov 10, 2020
Merged

Make source.hash non-optional, remove metadata-only#104
ascjones merged 1 commit into
masterfrom
cmichi-remove-metadata-only

Conversation

@cmichi

@cmichi cmichi commented Nov 10, 2020

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/cmd/metadata.rs
Comment on lines -229 to +219
dest_wasm,
dest_wasm: Some(dest_wasm),

Copy link
Copy Markdown
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?

@cmichi cmichi Nov 10, 2020

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

okay cool, thanks!

@Robbepop Robbepop left a comment

Copy link
Copy Markdown
Contributor

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