Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Aug 2, 2023
1 parent 4d13bb6 commit 3e79c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deployment_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ jobs:
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
done
ls -la "$HOME/.ocean/ocean-contracts/artifacts/"
- run: cat ${HOME}/.ocean/ocean-contracts/artifacts/address.json
- run: node scripts/check_deployment.js
2 changes: 2 additions & 0 deletions scripts/check_deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ const fs = require('fs')
async function testDeployment() {
// load addresses file first
addresses = null
console.log("Loading "+process.env.ADDRESS_FILE)
try {
addresses = JSON.parse(fs.readFileSync(process.env.ADDRESS_FILE, 'utf8'))
}
catch {
console.error("Could not load addreses files")
process.exit(1)
}
console.log(addresses)
if (!('development' in addresses)) {
console.error("Missing development network")
process.exit(1)
Expand Down

0 comments on commit 3e79c8b

Please sign in to comment.