Skip to content

Simulate UniswapV4 swap transaction, got OpcodeNotFound #42

@DctVN95

Description

@DctVN95

This is what I got:

{
  "simulationId": 1,
  "gasUsed": 236005,
  "blockNumber": 21835969,
  "success": false,
  "trace": [
    {
      "callType": "CALL",
      "from": "0xe234b706546cbbb560c869b8cb9c0699790bc154",
      "to": "0x66a9893cc07d91d95644aedd05d03f95e1dba8af",
      "functionSignature": "0x3593564c",
      "value": "0x20324bb546e8000"
    }
  ],
  "formattedTrace": null,
  "logs": [],
  "exitReason": "OpcodeNotFound",
  "returnData": "0x"
}

I tried with this edit with AI help but no work

  let mut builder = ExecutorBuilder::default()
      .with_gas_limit(gas_limit.into())
      .set_tracing(tracing)
      .with_spec(SpecId::CANCUN);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions