always use run-latest.json not a tag name
This commit is contained in:
@@ -18,7 +18,7 @@ _dexorder = {}
|
|||||||
def _load_chain(chain_id: int):
|
def _load_chain(chain_id: int):
|
||||||
deployment_tag = config.deployments.get(str(chain_id), 'latest')
|
deployment_tag = config.deployments.get(str(chain_id), 'latest')
|
||||||
try:
|
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)
|
deployment = json.load(file)
|
||||||
for tx in deployment['transactions']:
|
for tx in deployment['transactions']:
|
||||||
if tx['contractName'] == 'Factory':
|
if tx['contractName'] == 'Factory':
|
||||||
|
|||||||
Reference in New Issue
Block a user