-
Notifications
You must be signed in to change notification settings - Fork 6k
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
External tests for sushiswap/trident #12197
Conversation
555ea65
to
d2c01aa
Compare
a2f4abf
to
c4a2fd8
Compare
|
c4a2fd8
to
e6b7146
Compare
6b41eae
to
9f695dc
Compare
e6b7146
to
05101ce
Compare
9f695dc
to
217b998
Compare
05101ce
to
b97b03b
Compare
217b998
to
e4037d8
Compare
b97b03b
to
a816f17
Compare
e4037d8
to
6e03d91
Compare
a816f17
to
50637bd
Compare
6e03d91
to
a04ef39
Compare
d1d65c1
to
ab154bc
Compare
ab154bc
to
f3067d4
Compare
This now works, though not without workarounds:
|
f3067d4
to
5b823b4
Compare
5b823b4
to
8626c2a
Compare
I got no feedback in sushiswap/trident#282 so far so it looks like it might not get merged in the near future. I adjusted the test script to solve the problem by patching upstream repo. This way we can track project's |
3d7a97a
to
ba55006
Compare
96be215
to
6607e8f
Compare
8091c66
to
3d5bcfd
Compare
sed -i 's|uint128(-1)|type(uint128).max|g' contracts/flat/BentoBoxV1Flat.sol | ||
sed -i 's|uint64(-1)|type(uint64).max|g' contracts/flat/BentoBoxV1Flat.sol | ||
sed -i 's|uint32(-1)|type(uint32).max|g' contracts/flat/BentoBoxV1Flat.sol | ||
sed -i 's|IERC20(0)|IERC20(address(0))|g' contracts/flat/BentoBoxV1Flat.sol | ||
sed -i 's|IStrategy(0)|IStrategy(address(0))|g' contracts/flat/BentoBoxV1Flat.sol |
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.
Oh wow!
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.
Mudit said bentobox is a legacy deployed contract, and they probably won't change it in the repo.
I just checked that there are no contract dependencies for Bento. So the project will still compile without this file, however, it's needed for tests. Fine with the sed.
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.
Yeah, unfortunately we really do want to run tests, not just compile. Especially now that #12441 requires a full test run to gather gas usage for the benchmark.
3d5bcfd
to
2d038cd
Compare
This adds an external test run for trident.
Unfortunately there is a problem: it uses mixed Solidity versions.
contracts/flat/BentoBoxV1Flat.sol
wants 0.6.12 and requires some minor changes to compile on 0.8.9 (some conversions and constructor visibility. We need a workaround for that or an upstream PR to make the contracts compatible with both versions.