temper icon indicating copy to clipboard operation
temper copied to clipboard

Simulate UniswapV4 swap transaction, got OpcodeNotFound

Open DctVN95 opened this issue 10 months ago • 2 comments

  • I'm trying to simulate a uniswapV4 swap transaction and got issue OpcodeNotFound
  • For example tx: https://etherscan.io/tx/0xf51b1141fba63e89720161286c00b792d96dd9d1e18770f728eb82815c8ab192

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);

DctVN95 avatar Feb 13 '25 09:02 DctVN95

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

pata-eth avatar Mar 04 '25 03:03 pata-eth

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.

milonite avatar Mar 09 '25 16:03 milonite