Is it possible to verify contracts on etherscan.io using the yul optimizer? Example truffle-config.js relevant section:

  compilers: {
    solc: {
      version: "0.5.16",
      settings: {
        optimizer: {
          enabled: true,
          details: { yul: true }

I am also using ABIEncoderV2 but I've read other questions and that doesn't seem to be the issue. It seems like I cannot get the bytecodes to match up.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.