File tree Expand file tree Collapse file tree 6 files changed +5638
-6198
lines changed
Expand file tree Collapse file tree 6 files changed +5638
-6198
lines changed Original file line number Diff line number Diff line change 8282 - name : Use Node.js
8383 uses : actions/setup-node@v3
8484 with :
85- node-version : 16 .x
85+ node-version : 18 .x
8686 cache : ' npm'
8787 - run : npm install
8888 - run : npm run deploy-test --network ${{ needs.get-network.outputs.network }}
@@ -163,7 +163,7 @@ jobs:
163163 - name : Use Node.js
164164 uses : actions/setup-node@v3
165165 with :
166- node-version : 16 .x
166+ node-version : 18 .x
167167 cache : ' npm'
168168 - run : npm install
169169 - run : npm run deploy-prod --network ${{ needs.get-network.outputs.network }}
Original file line number Diff line number Diff line change 8585 - name : Use Node.js
8686 uses : actions/setup-node@v4
8787 with :
88- node-version : 16 .x
88+ node-version : 18 .x
8989 cache : ' npm'
9090 - run : npm install
9191 - run : npm run deploy-batcher --network ${{ needs.get-network.outputs.network }}
@@ -144,7 +144,7 @@ jobs:
144144 - name : Use Node.js
145145 uses : actions/setup-node@v4
146146 with :
147- node-version : 16 .x
147+ node-version : 18 .x
148148 cache : ' npm'
149149 - run : npm install
150150 - run : npm run deploy-batcher --network ${{ needs.get-network.outputs.network }}
Original file line number Diff line number Diff line change @@ -129,6 +129,9 @@ export async function waitAndVerify(
129129 logger . info (
130130 `Waiting for ${ confirmationCount } block confirmations for ${ contractName } ...`
131131 ) ;
132+ const artifact = await hre . artifacts . readArtifact ( contractName ) ;
133+ const verificationString = `${ artifact . sourceName } :${ artifact . contractName } ` ;
134+ console . log ( `Verification string: ${ verificationString } ` ) ;
132135 await contract . deployTransaction . wait ( confirmationCount ) ;
133136 logger . success ( `Contract confirmed on the network at ${ contract . address } .` ) ;
134137
@@ -142,7 +145,8 @@ export async function waitAndVerify(
142145 logger . info ( 'Attempting verification with standard Hardhat verifier...' ) ;
143146 await hre . run ( 'verify:verify' , {
144147 address : contract . address ,
145- constructorArguments
148+ constructorArguments : constructorArguments ,
149+ contract : verificationString
146150 } ) ;
147151 logger . success ( 'Standard verification successful!' ) ;
148152 return ; // Success, exit the loop.
Original file line number Diff line number Diff line change 11import * as dotenv from 'dotenv' ;
22dotenv . config ( ) ;
3- import '@nomiclabs/hardhat-etherscan' ;
43import { HardhatUserConfig } from 'hardhat/config' ;
5- import '@nomiclabs /hardhat-etherscan ' ;
4+ import '@nomicfoundation /hardhat-verify ' ;
65import '@nomiclabs/hardhat-waffle' ;
76import '@nomiclabs/hardhat-truffle5' ;
87import '@typechain/hardhat' ;
Original file line number Diff line number Diff line change 4343 "solc" : " 0.8.20"
4444 },
4545 "devDependencies" : {
46+ "@nomicfoundation/hardhat-verify" : " ^2.0.14" ,
4647 "@nomiclabs/hardhat-ethers" : " ^2.0.4" ,
47- "@nomiclabs/hardhat-etherscan" : " ^3.1.0" ,
4848 "@nomiclabs/hardhat-truffle5" : " ^2.0.3" ,
4949 "@nomiclabs/hardhat-waffle" : " ^2.0.2" ,
5050 "@nomiclabs/hardhat-web3" : " ^2.0.0" ,
8282 "web3" : " ^1.7.0"
8383 },
8484 "engines" : {
85- "node" : " >=16 <17 " ,
85+ "node" : " >=18 " ,
8686 "npm" : " >=7"
8787 }
8888}
You can’t perform that action at this time.
0 commit comments