Skip to content

feat: added JsTracer support (wip) #11005

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Soubhik-10
Copy link
Contributor

potentially closes #10977

GethDebugTracerType::JsTracer(_code) => {
GethDebugTracerType::JsTracer(code) => {
let config = tracer_config.into_json();
let _inspector = JsInspector::new(code, config).unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

this can fail if the provided code is faulty, so we should return an error BlockchainError::Message(err.to_string)

let config = tracer_config.into_json();
let _inspector = JsInspector::new(code, config).unwrap();

let _env = self.build_call_env(request, fee_details, block);
Copy link
Member

Choose a reason for hiding this comment

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

I think we should be able to use new_evm_with_inspector_ref here as well? just like the tracers above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

bug(anvil): Anvil returns "unsupported tracer type" error
2 participants