Skip to content

Commit

Permalink
Fix zksync verification conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Aug 5, 2024
1 parent bc276fa commit 9a52b44
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require('@matterlabs/hardhat-zksync-deploy');
require('@matterlabs/hardhat-zksync-solc');
require('@matterlabs/hardhat-zksync-verify');
require('@nomicfoundation/hardhat-verify');
require('@nomicfoundation/hardhat-ethers');
require('dotenv').config();
require('hardhat-deploy');
Expand All @@ -11,6 +9,11 @@ require('hardhat-tracer');
const { Networks, getNetwork } = require('@1inch/solidity-utils/hardhat-setup');

const { networks, etherscan } = (new Networks()).registerAll();
if (getNetwork().indexOf('zksync') !== -1) {
require('@matterlabs/hardhat-zksync-verify');
} else {
require('@nomicfoundation/hardhat-verify');
}

module.exports = {
etherscan,
Expand Down

0 comments on commit 9a52b44

Please sign in to comment.