mirror of https://gitlab.com/ecentrics/concordia
Ezerous
4 years ago
2 changed files with 8 additions and 4 deletions
@ -1,14 +1,16 @@ |
|||||
let Forum; |
let Forum, Voting, PostVoting; |
||||
|
|
||||
|
/* eslint-disable global-require */ |
||||
try { |
try { |
||||
// eslint-disable-next-line global-require
|
|
||||
Forum = require('./build/Forum.json'); |
Forum = require('./build/Forum.json'); |
||||
|
Voting = require('./build/Voting.json'); |
||||
|
PostVoting = require('./build/PostVoting.json'); |
||||
} catch (e) { |
} catch (e) { |
||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||
console.error("Could not require contract artifacts. Haven't you run compile yet?"); |
console.error("Could not require contract artifacts. Haven't you run compile yet?"); |
||||
} |
} |
||||
|
|
||||
module.exports = { |
module.exports = { |
||||
contracts: [Forum], |
contracts: [Forum, Voting, PostVoting], |
||||
forumContract: Forum, |
forumContract: Forum, |
||||
}; |
}; |
||||
|
Loading…
Reference in new issue