v3-periphery icon indicating copy to clipboard operation
v3-periphery copied to clipboard

INonfungiblePositionManager.positions(tokenId) stack error

Open evansmj opened this issue 3 years ago • 3 comments

When trying to use the INonfungiblePositionManager.positions(tokenId); call, I and others get the following compile error:

CompilerError: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack. Error HH600: Compilation failed.

Different optimizer settings, yul settings, haven't worked.

evansmj avatar Jun 02 '22 03:06 evansmj

Try setting from this project

  solidity: {
    compilers: [
      {
        version: "0.7.6",
        settings: {
          evmVersion: "istanbul",
          optimizer: {
            enabled: true,
            runs: 1000,
          },
        },
      },
    ],
  },

https://github.com/Uniswap/v3-periphery/blob/22a7ead071fff53f00d9ddc13434f285f4ed5c7d/hardhat.config.ts#L87-L88

t4sk avatar Jun 27 '22 07:06 t4sk

change that but still no luck, at the end of the day, I just suppress the generateSVGImage call so the uri has an invalid image attribute. It is not critical for my usage as it is purely for presentation. though I wonder how it was compiled in the first place(a different compiler?)

garyng2000 avatar Jul 31 '22 01:07 garyng2000

though it is strange that if I compile from the project directly, it works but if I put it in remix, it doesn't.

garyng2000 avatar Jul 31 '22 04:07 garyng2000