Skip to content

[Contract Verification] ZkSyncVerifyPluginError contract bytecode doesn't match any of your local contracts #588

Discussion options

You must be logged in to vote

Hey @ArshaanB,

It seems that hardhat-zksync-upgradable is used for verification because it finds the storage slot of the deployed proxy and since that plugin is imported inside hardhat-zksync plugin. However, since the contract wasn't deployed with hardhat-zksync-upgradable, strange behavior occurred.

To fix this issue until we release a new version of hardhat-zksync-upgradable that resolves it, you can replace:

import "@matterlabs/hardhat-zksync";

inside hardhat.config.ts with:

import "@matterlabs/hardhat-zksync-solc";
import "@matterlabs/hardhat-zksync-deploy";
import "@matterlabs/hardhat-zksync-verify";
import "@matterlabs/hardhat-zksync-node";

Since the upgradable package is not used.

A…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ArshaanB
Comment options

Answer selected by ArshaanB
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
2 participants