Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update hardhat.config.ts #276

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading