Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

abi-gen should regenerate contract-wrappers if template files change #1875

Merged
merged 3 commits into from
Jun 18, 2019

Conversation

xianny
Copy link
Contributor

@xianny xianny commented Jun 18, 2019

Description

Currently, abi-gen only checks the artifact file to determine if an existing generated wrapper is outdated. This PR adds a check for template files as well. Closes #1874

Testing instructions

Added a unit test to abi-gen.

You can also try editing artifact/template files and running yarn generate_contract_wrappers within abi-gen-wrappers to see if new wrappers get generated appropriately.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

@xianny xianny changed the title abi-gen should regenerate contract-wrappers if template files change WIP: abi-gen should regenerate contract-wrappers if template files change Jun 18, 2019
@coveralls
Copy link

coveralls commented Jun 18, 2019

Coverage Status

Coverage decreased (-0.01%) to 83.362% when pulling 355e79d on multilang/abi-gen-update-from-template into 01a1b19 on development.

@xianny xianny changed the title WIP: abi-gen should regenerate contract-wrappers if template files change abi-gen should regenerate contract-wrappers if template files change Jun 18, 2019
@xianny xianny requested review from feuGeneA and fabioberger June 18, 2019 22:32
@xianny xianny merged commit 9775f8d into development Jun 18, 2019
sjelfull pushed a commit to bakkenbaeck/0x-monorepo-1 that referenced this pull request Jun 21, 2019
@xianny xianny deleted the multilang/abi-gen-update-from-template branch October 8, 2019 00:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Multilang] add build step to regenerate contract wrappers if templates change
3 participants