always use run-latest.json

This commit is contained in:
Tim
2024-04-03 19:15:39 -04:00
parent 8191b4a54c
commit f108c061d9

View File

@@ -14,7 +14,7 @@ const _chains = [
]
for (const chain of _chains) {
const path = `../contract/broadcast/Deploy.sol/${chain.id}/run-${process.env['DEXORDER_DEPLOYMENT_' + chain.id]}.json`;
const path = `../contract/broadcast/Deploy.sol/${chain.id}/run-latest.json`;
let deployment
try {
deployment = JSON.parse(fs.readFileSync(path, 'utf8')) //null synchronous is ok we only do this once on init