Presently, the repository commits contract artifacts to retain contract ABIs for reference by other developers. While this is beneficial, non-critical updates (such as changes in Solidity versions) result in the contract bytecode and deployed bytecode being overwritten. This may lead to potential inconsistencies and difficulties in tracking changes over time. To address this issue, we should consider implementing a solution that preserves only the ABIs and ignore other attributes.
Solution
include the artifacts folder in the .gitignore to ignore all contract artifacts generated by compilation when committing.
utilize the hardhat-abi-exporter plugin to generate an ABI folder which contains only ABIs of all the contract
Problem
Presently, the repository commits contract artifacts to retain contract ABIs for reference by other developers. While this is beneficial, non-critical updates (such as changes in Solidity versions) result in the contract bytecode and deployed bytecode being overwritten. This may lead to potential inconsistencies and difficulties in tracking changes over time. To address this issue, we should consider implementing a solution that preserves only the ABIs and ignore other attributes.
Solution
hardhat-abi-exporter
plugin to generate an ABI folder which contains only ABIs of all the contractAlternatives
No response