Skip to content

Commit

Permalink
update hardhat.config.ts (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhihua81 authored Dec 14, 2023
1 parent f22b157 commit f7b7f62
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ const config: HardhatUserConfig = {
},
// Mainnets
ethMainnet: getNetworkConfig(ethMainnetEndpoint, kmsKeyId, ethMainnetPrivateKey),
bsc: getNetworkConfig(bscEndpoint, kmsKeyId, bscPrivateKey),
bsc: getNetworkConfig(bscEndpoint, kmsKeyId, bscPrivateKey, 5000000000),
arbitrumOne: getNetworkConfig(arbitrumOneEndpoint, kmsKeyId, arbitrumOnePrivateKey),
arbitrumNova: getNetworkConfig(arbitrumNovaEndpoint, kmsKeyId, arbitrumNovaPrivateKey),
polygon: getNetworkConfig(polygonEndpoint, kmsKeyId, polygonPrivateKey, 50000000000),
Expand Down Expand Up @@ -512,7 +512,7 @@ const config: HardhatUserConfig = {
zksolc: {
version: 'latest', // optional.
settings: {
compilerPath: 'zksolc', // optional. Ignored for compilerSource "docker". Can be used if compiler is located in a specific folder
//compilerPath: 'zksolc', // optional. Ignored for compilerSource "docker". Can be used if compiler is located in a specific folder
libraries: {}, // optional. References to non-inlinable libraries
isSystem: false, // optional. Enables Yul instructions available only for zkSync system contracts and libraries
forceEvmla: false, // optional. Falls back to EVM legacy assembly if there is a bug with Yul
Expand All @@ -528,4 +528,15 @@ const config: HardhatUserConfig = {
}
};

export default config;
if (config.networks?.polygon) {
config.networks.polygon.minMaxPriorityFeePerGas = 30000000000;
}
if (config.networks?.fantom) {
config.networks.fantom.minMaxPriorityFeePerGas = 30000000000;
}
if (config.networks?.bsc) {
config.networks.bsc.minMaxPriorityFeePerGas = 3000000000;
config.networks.bsc.minMaxFeePerGas = 3000000000;
}

export default config;

0 comments on commit f7b7f62

Please sign in to comment.