-
Notifications
You must be signed in to change notification settings - Fork 120
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
Do not postprocess or generate metadata if contract unchanged #964
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a line to the user output, explaining that metadata was not updated because contract is unchanged?
A log::debug!
when deciding to not build further would also be helpful.
There is already a Here is the message saying artifacts are unchanged: |
Closes #949.
Checks if the original compiled
.wasm
file intarget/ink/wasm32-unknown-unknown/release/
has changed. If it is unchanged after building, then skips the postprocessing and metadata gen iff all of the resulting contract artefacts are already there.Note: because it must perform the build step first before determining whether the contract has changed, the first step now shows [1/*]
When there are changed to the contract:
When there have been no changes to the contract: