Skip to content
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

INonfungiblePositionManager.positions(tokenId) stack error #273

Open
evansmj opened this issue Jun 2, 2022 · 3 comments
Open

INonfungiblePositionManager.positions(tokenId) stack error #273

evansmj opened this issue Jun 2, 2022 · 3 comments

Comments

@evansmj
Copy link

evansmj commented Jun 2, 2022

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.

@t4sk
Copy link

t4sk commented Jun 27, 2022

Try setting from this project

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

solidity: {
compilers: [DEFAULT_COMPILER_SETTINGS],

@garyng2000
Copy link

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
Copy link

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

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

4 participants
@garyng2000 @t4sk @evansmj and others