diffusc icon indicating copy to clipboard operation
diffusc copied to clipboard

[Bug-Candidate]:

Open emrsrb opened this issue 2 years ago • 1 comments

Describe the issue:

Does diffusec still function properly even when the new version deviates from the original? For instance, if the old version is 0.6.* and the new version is 0.7.*, will diffusec continue to work? I am faced with two separate projects in this particular situation, and it seems like diffusc have encountered difficulties finding a compatible version that works for both compilations. Screenshot 2023-07-18 at 3 02 04 PM

Code example to reproduce the issue:

contract v1 0.6.12 contract v2 0.7.12

Version:

1.0.0

Relevant log output:

No response

emrsrb avatar Jul 18 '23 20:07 emrsrb

Hmm, I never thought of that issue.

In the generated contract DiffFuzzUpgrades.sol, could you try changing ^0.6.12 to >=0.6.12 and see if that compiles? If so, the fix should be fairly straightforward on my end.

Also, for what it's worth, soon I will be merging a PR which changes the flag for specifying the solc version to use from -v and --version to -V and --solc-version, so that the --version flag behaves the way most people would expect, printing the version of the tool itself. So for your case, when running the tool you would use: diffusc v1_path v2_path --solc-version 0.6.12.

webthethird avatar Jul 19 '23 18:07 webthethird