INonfungiblePositionManager.positions(tokenId) stack error
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.
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
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?)
though it is strange that if I compile from the project directly, it works but if I put it in remix, it doesn't.