Skip to content

message_call flow increases the sender's nonce #24

Open
@cyberthirst

Description

@cyberthirst

hello! i was running some tests against both pyevm and pyrevm and found out that tests against pyrevm fail..

in vyper we call into pyrevm's message_call:
https://github.com/vyperlang/vyper/blob/a4cefeaeabd3dca2c7193b730e945b29eabe4b51/tests/evm_backends/revm_env.py#L28
https://github.com/vyperlang/vyper/blob/a4cefeaeabd3dca2c7193b730e945b29eabe4b51/tests/evm_backends/revm_env.py#L99

however, this message_call increases the sender's nonce (which should only happen if the message is part of the full transaction flow - see how a transaction in processed in the execution specs)

from a quick look i had it seems that the nonce gets increased in deduct_caller (which seems to be some older version of validate_against_state_and_deduct_caller`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions