Created
June 26, 2023 09:50
-
-
Save hrik2001/13f0d5231f22e9db8050964ec67070b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # execute this at v2-deploy directory | |
| import os | |
| import json | |
| path_name = './deployments/polygon' | |
| files = (os.listdir(path_name)) | |
| for file_name in files: | |
| if file_name.endswith('.json'): | |
| with open(path_name + '/' + file_name) as f: | |
| d = json.load(f) | |
| print("address of ", file_name, d['address']) | |
| print(' '.join((str(i) for i in d["args"]))) | |
| # os.system("yarn --help") | |
| os.system("yarn hardhat verify --network polygon " + d['address'] + ' ' + ' '.join((str(i) for i in d["args"]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment