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

Adding test case that fails if contracts can initiate transactions. #255

Open
wants to merge 52 commits into
base: master
Choose a base branch
from

Conversation

stephensj2
Copy link
Collaborator

Adding regression for case where harness can call otherwise unreachable code. Also guarding code that only allows non-contracts to initiate transactions with a flag that is on by default

…le code. Also guarding code that only allows non-contracts to initiate transactions with a flag that is on by default
@msftclas
Copy link

msftclas commented Apr 15, 2020

CLA assistant check
All CLA requirements met.

@shuvendu-lahiri
Copy link
Member

The regressions are failing.

stephensj2 and others added 17 commits May 13, 2020 19:57
…n infinite loop where you had run out of gas but it was never checked. We not guard against that. Also adding an explicit revert call for the callback model.
… type if modularArithmetic flag is on. Fixed bug with casting down in Modular arithmetic and found bug in VeriSol where it will translate a += foo(b) incorrectly. Added an assertion that will fill if the translation will be incorrect
…, we should check the type of the contract we are making the call to, otherwise we we have a lot of repetition and can make illegal calls. For multipleCallback I'm changing the while loop from while(*) to while(nondet && gas >= 21000)
…ures on an access. It passes all regressions as long as ERC20 recursionDepth=4. I also think it may need a bit more work on nested structure assignment, but we should be able to cross that bridge later.
… rather than a split map if not aliased. All regressions pass in this mode, but there is still some work that needs to be done for the qantFreeAlloc mode. Right now only zero functions are generated but for statically sized arrays, other length initializers might be necessary. Will add this in later.
stephensj2 and others added 24 commits September 24, 2020 16:42
…ld not be included in vars and vars should be in inheritance order.
…public getters for mappings/arrays as it didn't take arguments into account. Have a workaround but only if generating the getters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants