Skip to content
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

Tests: fix tests after istanbul hardfork #1067

Closed
sohkai opened this issue Jan 14, 2020 · 6 comments
Closed

Tests: fix tests after istanbul hardfork #1067

sohkai opened this issue Jan 14, 2020 · 6 comments

Comments

@sohkai
Copy link
Contributor

sohkai commented Jan 14, 2020

It appears quite a few of our contract tests are now failing due to the Istanbul hardfork, most likely due to gas amounts when transferring ETH.

@sohkai
Copy link
Contributor Author

sohkai commented Jan 21, 2020

Just realized we can most likely fix this in one go by updating the aragonOS dependency.

@bingen
Copy link
Contributor

bingen commented Feb 27, 2020

I'm afraid we have a problem with Finance fallback:
https://github.com/aragon/aragon-apps/blob/buidler-migration/buidler-apps/finance/contracts/Finance.sol#L154
@ajsantander realized while testing with buidler that this test is not passing even with @aragon/os 4.3.0:
https://github.com/aragon/aragon-apps/blob/buidler-migration/buidler-apps/finance/test/finance.js#L997
Should we try to optimize that one too, like we did with Proxy one?

@eternauta1337
Copy link

eternauta1337 commented Feb 27, 2020

I can confirm that Finance's "can recover ETH using AragonApp#transferToVault" test FAILS with a clean clone, but if the fork is set to "constantinople" in test-helpers/ganachel-cli.sh, it PASSES.

@bingen
Copy link
Contributor

bingen commented Feb 27, 2020

Should we try to optimize that one too, like we did with Proxy one?

I see that fallback is already spending way more, so I don't think it's worth it.

@sohkai
Copy link
Contributor Author

sohkai commented Mar 3, 2020

I see that fallback is already spending way more, so I don't think it's worth it.

This fallback was not particularly intended to be used with a send() or transfer() from a contract (as it does a number of calls and logs); contracts should be using deposit() instead.

@sohkai
Copy link
Contributor Author

sohkai commented Apr 4, 2020

Closing for https://github.com/aragon/aragon-apps/issues/1111—we will investigate and fix issues there.

@sohkai sohkai closed this as completed Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants