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

Exhaustive check fixes #52

Merged

Conversation

jsign
Copy link
Collaborator

@jsign jsign commented Sep 11, 2024

No description provided.

Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
@jsign jsign force-pushed the jsign/exhaustive-fixes branch from 6d5eafe to dc21bd6 Compare September 11, 2024 17:43
Signed-off-by: Ignacio Hagopian <[email protected]>
@jsign jsign force-pushed the jsign/exhaustive-fixes branch from dc21bd6 to 5089d6a Compare September 11, 2024 17:43
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
@@ -157,15 +155,18 @@ def _extcodehash(

post = {}
if not fails:
# TODO(verkle): assign correct storage slot value when filling
post[TestAddress2] = Account(code=pre[TestAddress2].code, storage={0: 0x424242})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like post-state checks maybe aren't working?

This 0x424242 is a fake value. Actually should be the EXTCODEHASH result saved in storage slot 0 (see L142 above).

So clearly this post-state check should fail. Moreover, you can change to any other value and still pass.

To run: fill --fork Verkle -v -m blockchain_test -n auto --evm-bin=... -k test_extcodehash_foo

Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
Signed-off-by: Ignacio Hagopian <[email protected]>
@jsign jsign force-pushed the jsign/exhaustive-fixes branch from 1169b28 to 0fcff0d Compare September 12, 2024 14:53
@jsign jsign marked this pull request as ready for review September 12, 2024 17:06
@jsign jsign merged commit cfa073f into spencer-tb:verkle/block-witness-checks Sep 12, 2024
0 of 3 checks passed
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.

1 participant