Skip to content

Tenderly can't compile contracts because it doesn't support --via-ir option #128

@jrico207

Description

@jrico207

My contract needs solidity compiler option --via-ir it seems tenderly.verifyMultiCompilerAPI does not use this compiler option. Hardhat supports this option so while I'm able to use it with hardhat, I can't compile and verify contracts using tenderly.

Can you add viaIR option?

This is how it looks on hardhat.

                compiler: {
                    version: "0.8.17",
                    settings: {
                        optimizer: {
                            enabled: true,
                            runs: 1000,
                        },
                        viaIR: true
                    },
                }

Without it, I get this compilation error.

    error_type: 'CompilerError',
    component: 'general',
    message: 'Compiler error (/solidity/libsolidity/codegen/LValue.cpp:52):Stack too deep. Try compiling with `--via-ir` (cli) or the equivalent `viaIR: true` (standard JSON) while enabling the optimizer. Otherwise, try removing local variables.',
    formatted_message: undefined
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions