Skip to content

Simulate UniswapV4 swap transaction, got OpcodeNotFound #42

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

Open
DctVN95 opened this issue Feb 13, 2025 · 2 comments
Open

Simulate UniswapV4 swap transaction, got OpcodeNotFound #42

DctVN95 opened this issue Feb 13, 2025 · 2 comments

Comments

@DctVN95
Copy link

DctVN95 commented Feb 13, 2025

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);
@pata-eth
Copy link

pata-eth commented Mar 4, 2025

uni V4 uses transient storage which was introduced with cancun. cancun isn't supported by the current version of temper

@milonite
Copy link
Member

milonite commented Mar 9, 2025

uni V4 uses transient storage which was introduced with cancun. cancun isn't supported by the current version of temper

Yes, this is correct. If anyone wants to contribute and add cancun support we are happy to review and merge upstream.

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

No branches or pull requests

3 participants