File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import '@tenderly/hardhat-tenderly'
30
30
interface NetworkConfig {
31
31
network : string
32
32
chainId : number
33
+ url ?: string
33
34
gas ?: number | 'auto'
34
35
gasPrice ?: number | 'auto'
35
36
}
@@ -44,15 +45,15 @@ function getAccountMnemonic() {
44
45
return process . env . MNEMONIC || ''
45
46
}
46
47
47
- function getInfuraProviderURL ( network : string ) {
48
+ function getDefaultProviderURL ( network : string ) {
48
49
return `https://${ network } .infura.io/v3/${ process . env . INFURA_KEY } `
49
50
}
50
51
51
52
function setupNetworkProviders ( hardhatConfig ) {
52
53
for ( const netConfig of networkConfigs ) {
53
54
hardhatConfig . networks [ netConfig . network ] = {
54
55
chainId : netConfig . chainId ,
55
- url : getInfuraProviderURL ( netConfig . network ) ,
56
+ url : netConfig . url ? netConfig . url : getDefaultProviderURL ( netConfig . network ) ,
56
57
gas : netConfig . gas || 'auto' ,
57
58
gasPrice : netConfig . gasPrice || 'auto' ,
58
59
accounts : {
@@ -213,8 +214,8 @@ const config = {
213
214
flat : true ,
214
215
} ,
215
216
tenderly : {
216
- project : '' ,
217
- username : '' ,
217
+ project : 'graph-network ' ,
218
+ username : 'abarmat ' ,
218
219
} ,
219
220
contractSizer : {
220
221
alphaSort : true ,
You can’t perform that action at this time.
0 commit comments