always use run-latest.json not a tag name

This commit is contained in:
Tim
2024-04-03 19:12:22 -04:00
parent e3ed893d81
commit da45a65f21

View File

@@ -18,7 +18,7 @@ _dexorder = {}
def _load_chain(chain_id: int):
deployment_tag = config.deployments.get(str(chain_id), 'latest')
try:
with open(f'../contract/broadcast/Deploy.sol/{chain_id}/run-{deployment_tag}.json', 'rt') as file:
with open(f'../contract/broadcast/Deploy.sol/{chain_id}/run-latest.json', 'rt') as file:
deployment = json.load(file)
for tx in deployment['transactions']:
if tx['contractName'] == 'Factory':