Skip to content

[isoltest] Handle events in isoltest semantics tests. #6902

@ekpyron

Description

@ekpyron

At some point we should be able to expect events emitted during a transaction/call in isoltest.
We'll first need to decide what syntax to use for that, though.
Suggestion:

contract C {
    event TestEvent(uint256);
    function f() public {
        emit TestEvent(42);
    }
}
// ----
// f() ->
// LOG[0]: TestEvent(uint256), 42

Maybe we should also have some way to check the logged ether amount of the transaction.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions