Skip to content

[Contract Verification] Inconsistency between ZK Explorer(explorer.sophon) verification vs Etherscan based(sophscan) #926

Discussion options

You must be logged in to vote

I've investigated this problem deeply and found the following issues:

The repo you have provided doesn't match the configuration for verification on sophonscan. I've made the following changes to the hardhat configuration:

  zksolc: {
    version: "1.5.11",
    settings: {
      "optimizer": {
        "enabled": true,
        "mode": "3"
      },
      "forceEVMLA": false,
      "enableEraVMExtensions": false,
      "libraries": {}
    },
  },
  solidity: {
    version: "0.8.27",
    settings: {
      "evmVersion": "paris"
    }
  },

In particular:

  • changed zksolc version from latest to 1.5.11
  • added settings for zksolc taken from sophonscan
  • added paris EVM version to solc configuration (…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@MexicanAce
Comment options

@ndehouche
Comment options

@ndehouche
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by popzxc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract-verification Questions for contract verification
5 participants