Skip to content

Generate metadata explicitly for the contract which is build#174

Merged
cmichi merged 10 commits into
masterfrom
cmichi-fix-isolated-sub-contract-building
Feb 18, 2021
Merged

Generate metadata explicitly for the contract which is build#174
cmichi merged 10 commits into
masterfrom
cmichi-fix-isolated-sub-contract-building

Conversation

@cmichi

@cmichi cmichi commented Feb 12, 2021

Copy link
Copy Markdown
Collaborator

Closes #60.

@cmichi
cmichi requested a review from ascjones February 12, 2021 16:50
@ascjones

Copy link
Copy Markdown
Collaborator

Nice! I'll have a proper look on Monday.

Comment thread src/workspace/mod.rs Outdated
Comment thread src/workspace/mod.rs Outdated

@ascjones ascjones left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This introduces a regression, whereby the optimized contract is empty. Building flipper with

  • master
    image

  • this PR
    image

Haven't tried debugging it, but I think it's worth adding an assert for this in ine of the existing build tests to prevent this regression.

@ascjones ascjones left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, this does fix the issue of metadata generation for sub contracts.

However it doesn't completely close all the points in #60, but I have raised a follow up issue for that #182.

Also I came across #181 while testing, which also needs investigating but possibly as a follow up.

@cmichi
cmichi merged commit 594b637 into master Feb 18, 2021
@cmichi
cmichi deleted the cmichi-fix-isolated-sub-contract-building branch February 18, 2021 18:45
@ascjones ascjones mentioned this pull request Feb 22, 2021
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.

Generate metadata for sub-contracts in multi contract workspace

2 participants