Skip to content

Instantly share code, notes, and snippets.

@hrik2001
Created June 26, 2023 09:50
Show Gist options
  • Select an option

  • Save hrik2001/13f0d5231f22e9db8050964ec67070b2 to your computer and use it in GitHub Desktop.

Select an option

Save hrik2001/13f0d5231f22e9db8050964ec67070b2 to your computer and use it in GitHub Desktop.
# 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