-
Notifications
You must be signed in to change notification settings - Fork 31
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
CREATE
tests
#1572
Merged
Merged
CREATE
tests
#1572
Changes from 47 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
e0f6dd9
first commit
OlivierBBB 0c986fe
ras
OlivierBBB 2044895
feat: wip tests
OlivierBBB a271c07
feat: root level CREATE tests
OlivierBBB 8826713
ras
OlivierBBB 98f63a4
fix: added missing salt parameter to genericCreate()
OlivierBBB 50f85d7
feat: some abort tests for CREATE(2)
OlivierBBB 14afa73
feat: abort / success and success / abort tests for CREATE(2)'s
OlivierBBB b18f6dd
feat: more tests
OlivierBBB e8cd37f
fix: documentation + no SUX for CREATE2 anymore
OlivierBBB 66019d9
Merge branch 'arith-dev' into CREATE-tests
OlivierBBB 7744321
spotless
OlivierBBB 356dc8e
fix: make the test work
OlivierBBB efdc33b
Merge branch 'arith-dev' into CREATE-tests
OlivierBBB b3fd26f
spotless
OlivierBBB aa81fba
feat: added documentation for nontrivial CREATE tests
OlivierBBB c8c5aaa
feat: more CREATE test todo's
OlivierBBB 03a90c8
Merge branch 'arith-dev' into CREATE-tests
OlivierBBB 3eb1d33
ras
OlivierBBB 818e692
fix: CREATE's gasPaidOutOfPocket()
OlivierBBB 2bc38d7
fix: remove double use of CREATE's gasPaidOutOfPocket
OlivierBBB 0611e0e
fix: using creator snapshots for creatorAccountFragment of CreateSection
OlivierBBB 581a7ab
fix: CREATE2 gas pricing (similar error to CREATE pricing error)
OlivierBBB 1cf202e
fix: CREATE2 address computations now trace the nonce
OlivierBBB 64fe94b
ras
OlivierBBB ba8e12c
spotless
OlivierBBB 3bdae0c
Merge branch 'arith-dev' into CREATE-tests
OlivierBBB 4a45440
feat: upgraded the todo.md's to GitHub issues
OlivierBBB 117b776
fix: RLPADDR needs to hash the nonce to disambiguate CREATE2's
OlivierBBB 92af66d
Merge branch 'arith-dev' into CREATE-tests
OlivierBBB ce0677d
fix: documentation for CreateInducedFailureTest
OlivierBBB f201cc3
spotless
OlivierBBB e128e99
feat: Failure Condition F via nested CREATE2's
OlivierBBB 39b017a
fix: the OOB related call for CREATE's only requires NONCE and HAS_CO…
OlivierBBB 7b83f14
fix: minor test stuff
OlivierBBB 1a5b4cf
spotless
OlivierBBB 10d0166
feat: a little less messy, but still very messy
OlivierBBB 8bafafc
feat: moving stuff around ...
OlivierBBB 68b4e0f
fix: some wip refactoring on CreateSection
OlivierBBB 212c827
ras: renaming for simpler interpretation of ParametricTests results
OlivierBBB 9e44990
fix: get latest deployment info for CREATE's that revert
OlivierBBB aca3b39
fix: make SELFDESTRUCT finish on a single context row
OlivierBBB 4acb628
fix: CallFrame's callValue (value) must be gleamed from the apparentV…
OlivierBBB cd93882
fix: constraints point back to master
OlivierBBB 0d07309
Merge branch 'arith-dev' into CREATE-tests
OlivierBBB 181ccfa
spotless
OlivierBBB 7832cbf
fix: remove junit parallelism
OlivierBBB aa6c423
Merge branch 'arith-dev' into CREATE-tests
OlivierBBB 0981d52
fix: re-did the type change for scenario/XXX_GAS columns
OlivierBBB d4ed209
feat: new simplified tests
OlivierBBB f21d390
Merge branch 'arith-dev' into CREATE-tests
OlivierBBB f9e21d5
spotless
OlivierBBB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# SELFDESTRUCT testing | ||
|
||
- STATICX | ||
- i.e. done in an execution context spawned through STATICCALL | ||
- OOGX | ||
- zero / nonzero balance | ||
- warmth / cold recipient | ||
- self recipient | ||
- new account cost for recipient | ||
- REVERT'ed later or not | ||
- inside of a CREATE / deployment transaction | ||
- leads to early deployment of empty code | ||
- said account will be wiped off the world later | ||
- can still have storage in the mean time | ||
|
||
- carried out several times in the same account, same transaction | ||
- reverted yes or no at the end | ||
- done indirectly (i.e. through DELEGATECALL / CALLCODE) | ||
- interaction with storage | ||
|
||
More involved: | ||
- deploying from an account MARKED_FOR_SELFDESTRUCT | ||
- deploying with CREATE from an account MARKED_FOR_SELFDESTRUCT | ||
|
||
This would be to reproduce CREATE address collisions | ||
|
||
|
||
# PRC calls | ||
|
||
- all 9 precompiles | ||
- testing all possible success / failure paths (some extensive work was already done for EC stuff) | ||
- in particular for gas | ||
- testing variations on CALLDATA | ||
- testing the output RETURNDATA | ||
- interaction with DELEGATECALL / CALLCODE ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Important bug fix, required e.g. for DELEGATECALL to provide the CallFrame with the correct
value
i.e.callValue