packages/contracts-core/deployments/address_printer.py
Avoid deeply nested control flow statements. Open
Open
with open(file_path, 'r') as json_file:
data = json.load(json_file)
address = data.get('address', 'Address not found')
print(f"{file.replace('.json', '')}: {address}")
print() # Print a newline for better separation