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

IDEA: add debug functions #392

Open
winsvega opened this issue Jan 19, 2024 · 0 comments
Open

IDEA: add debug functions #392

winsvega opened this issue Jan 19, 2024 · 0 comments

Comments

@winsvega
Copy link
Collaborator

winsvega commented Jan 19, 2024

Python produces ton of output
is there a way to disable it and control the output. to have only what we want to read

since there test vector names are so huge I have this suggestion.

when designing post state in test

if create2_dest_already_in_state:
        # The create2 collision causes all the code to go out of gas and return 0x00
        post[address_to] = Account(
            storage={code_worked: 0x01, first_create2_result: 0x00, second_create2_result: 0x00}
        )
        post[address_create2_storage] = Account(storage={create2_constructor_worked: 0x00})

        if call_create2_contract_in_between:

make a debug function

if create2_dest_already_in_state:
     POSTSTATE()

if such function called in the test. it will tell to disable all python log. and print only the post state of produced test vector.
by

state_test(pre,txs...)

after it printed poststate, all the rest, following state_test(pre,txs...) calls are ignored

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

No branches or pull requests

1 participant