Skip to content

Commit

Permalink
Fix zksync verifier conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Aug 6, 2024
1 parent f3d69b9 commit 31e738e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 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-chai-matchers');
require('solidity-coverage');
require('hardhat-dependency-compiler');
Expand All @@ -11,6 +9,12 @@ require('hardhat-tracer');
require('dotenv').config();
const { Networks, getNetwork } = require('@1inch/solidity-utils/hardhat-setup');

if (getNetwork().indexOf('zksync') !== -1) {
require('@matterlabs/hardhat-zksync-verify');
} else {
require('@nomicfoundation/hardhat-verify');
}

const { networks, etherscan } = (new Networks()).registerAll();

module.exports = {
Expand Down

0 comments on commit 31e738e

Please sign in to comment.