Skip to content

Commit 0d52e58

Browse files
committed
Fix CI
1 parent 32e149a commit 0d52e58

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/sharing-smart-contract-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ jobs:
8585
8686
- name: Test deployment script
8787
working-directory: packages/sharing-smart-contract
88-
run: npm run deploy -- --network local-bellecour-fork
88+
run: |
89+
POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \
90+
DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \
91+
npm run deploy -- --network local-bellecour-fork
8992
9093
- name: Upgrade test
9194
working-directory: packages/sharing-smart-contract

packages/sharing-smart-contract/config/config.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Hardhat Ignition does not support ESM modules, so we use CommonJS syntax.
22
// TODO refactor this to use ESM syntax when Hardhat Ignition supports it.
33

4+
// TODO define addresses by network.
5+
46
module.exports = {
57
POCO_ADDRESS: '0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f',
68
DATASET_REGISTRY_ADDRESS: '0x799DAa22654128d0C64d5b79eac9283008158730',

packages/sharing-smart-contract/scripts/deploy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,7 @@ async function isCreatexFactorySupported() {
6262
return code !== '0x';
6363
}
6464

65-
main().catch(console.error);
65+
main().catch((error) => {
66+
console.error(error);
67+
process.exitCode = 1;
68+
});

0 commit comments

Comments
 (0)