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

feat: add code_address field in Message struct #894

Closed
enitrat opened this issue Sep 3, 2024 · 0 comments · Fixed by #901
Closed

feat: add code_address field in Message struct #894

enitrat opened this issue Sep 3, 2024 · 0 comments · Fixed by #901
Assignees
Labels
enhancement New feature or request

Comments

@enitrat
Copy link
Collaborator

enitrat commented Sep 3, 2024

#[derive(Copy, Drop, Default, PartialEq, Debug)]
struct Message {
    caller: Address,
    target: Address,
    gas_limit: u128,
    data: Span<u8>,
    code: Span<u8>,
    value: u256,
    should_transfer_value: bool,
    depth: usize,
    read_only: bool,
    accessed_addresses: SpanSet<EthAddress>,
    accessed_storage_keys: SpanSet<(EthAddress, u256)>,
}

The information present in this struct is not enough to know who's code is being executed.

@enitrat enitrat added the enhancement New feature or request label Sep 3, 2024
@enitrat enitrat self-assigned this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant