Skip to content

Conversation

@pLabarta
Copy link
Contributor

Allow capturing Ethereum execution information

@pLabarta pLabarta requested a review from sorpaas as a code owner December 11, 2024 07:19
) -> Result<(PostDispatchInfo, CallOrCreateInfo), DispatchErrorWithPostInfo> {
let (to, _, info) = Self::execute(source, &transaction, None)?;

catch_exec_info::fill_exec_info(&info);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Curious in which case will this be used.

Copy link
Collaborator

@boundless-forest boundless-forest Jan 8, 2025

Choose a reason for hiding this comment

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

Any idea to this? @pLabarta

@librelois
Copy link
Collaborator

We use the catch_exec_info feature in Moonbeam because we need to access the EVM execution result when calling the EVM from XCM. You can see our usage here:
https://github.com/moonbeam-foundation/moonbeam/blob/f82fe4e06a0a370460be44547cdbebee2dd72b80/runtime/common/src/impl_xcm_evm_runner.rs#L108

There’s no way for us to obtain the execution result without environmental, as there are many intermediate and abstraction layers between XCM and the EVM.

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.

4 participants