always use run-latest.json
This commit is contained in:
2
chain.js
2
chain.js
@@ -14,7 +14,7 @@ const _chains = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
for (const chain of _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
|
let deployment
|
||||||
try {
|
try {
|
||||||
deployment = JSON.parse(fs.readFileSync(path, 'utf8')) //null synchronous is ok we only do this once on init
|
deployment = JSON.parse(fs.readFileSync(path, 'utf8')) //null synchronous is ok we only do this once on init
|
||||||
|
|||||||
Reference in New Issue
Block a user