@@ -22,8 +22,9 @@ async function main() {
2222 let walletFactoryContractName = 'WalletFactory' ;
2323 let forwarderContractName = 'Forwarder' ;
2424 let forwarderFactoryContractName = 'ForwarderFactory' ;
25+ let contractPath = `contracts/WalletSimple.sol:WalletSimple` ;
2526 const chainId = await deployer . getChainId ( ) ;
26- switch ( await deployer . getChainId ( ) ) {
27+ switch ( chainId ) {
2728 // https://chainlist.org/
2829 //eth
2930 case 1 :
@@ -32,6 +33,7 @@ async function main() {
3233 walletImplementationContractName = 'WalletSimple' ;
3334 forwarderContractName = 'ForwarderV4' ;
3435 forwarderFactoryContractName = 'ForwarderFactoryV4' ;
36+ contractPath = `contracts/${ walletImplementationContractName } .sol:${ walletImplementationContractName } ` ;
3537 break ;
3638 //matic
3739 case 137 :
@@ -40,6 +42,7 @@ async function main() {
4042 walletImplementationContractName = 'PolygonWalletSimple' ;
4143 forwarderContractName = 'Forwarder' ;
4244 forwarderFactoryContractName = 'ForwarderFactory' ;
45+ contractPath = `contracts/coins/${ walletImplementationContractName } .sol:${ walletImplementationContractName } ` ;
4346 break ;
4447 // bsc
4548 case 56 :
@@ -53,18 +56,21 @@ async function main() {
5356 // tarbeth
5457 case 421614 :
5558 walletImplementationContractName = 'ArbethWalletSimple' ;
59+ contractPath = `contracts/coins/${ walletImplementationContractName } .sol:${ walletImplementationContractName } ` ;
5660 break ;
5761 // opeth
5862 case 10 :
5963 // topeth
6064 case 11155420 :
6165 walletImplementationContractName = 'OpethWalletSimple' ;
66+ contractPath = `contracts/coins/${ walletImplementationContractName } .sol:${ walletImplementationContractName } ` ;
6267 break ;
6368 // zketh
6469 case 324 :
6570 // tzketh
6671 case 300 :
6772 walletImplementationContractName = 'ZkethWalletSimple' ;
73+ contractPath = `contracts/coins/${ walletImplementationContractName } .sol:${ walletImplementationContractName } ` ;
6874 break ;
6975 }
7076
@@ -130,7 +136,7 @@ async function main() {
130136 walletImplementationContractName ,
131137 walletSimple . address ,
132138 [ ] ,
133- `contracts/coins/ ${ walletImplementationContractName } .sol: ${ walletImplementationContractName } `
139+ contractPath
134140 ) ;
135141 await verifyContract ( 'WalletFactory' , walletFactory . address , [
136142 walletSimple . address
0 commit comments