Skip to content

Commit

Permalink
add user registry to testenv fix #314 (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gosselin authored Dec 21, 2019
1 parent be662bc commit d3ee7eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions packages/testenv/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ let c = {
NMR: {
artifact: require('./build/MockNMR.json'),
},
Erasure_Users: {
artifact: require('./build/Erasure_Users.json'),
},
Erasure_Agreements: {
artifact: require('./build/Erasure_Agreements.json'),
},
Expand Down Expand Up @@ -226,13 +229,16 @@ const main = async () => {
console.log(`
Deploy MockNMR
`)

;[c.NMR.wrap, _] = await deployNMR(nmrSigner)

console.log(`
Deploy Registries
`)

;[c.Erasure_Users.wrap, _] = await deployContract(
'Erasure_Users',
[],
deploySigner,
)
;[c.Erasure_Posts.wrap, _] = await deployContract(
'Erasure_Posts',
[],
Expand All @@ -252,7 +258,6 @@ Deploy Registries
console.log(`
Deploy Factories
`)

;[
c.SimpleGriefing.template.wrap,
c.SimpleGriefing.factory.wrap,
Expand All @@ -261,7 +266,6 @@ Deploy Factories
c.Erasure_Agreements.wrap,
deploySigner,
)

;[
c.CountdownGriefing.template.wrap,
c.CountdownGriefing.factory.wrap,
Expand All @@ -270,7 +274,6 @@ Deploy Factories
c.Erasure_Agreements.wrap,
deploySigner,
)

;[c.Feed.template.wrap, c.Feed.factory.wrap] = await deployFactory(
'Feed',
c.Erasure_Posts.wrap,
Expand Down
2 changes: 1 addition & 1 deletion packages/testenv/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@erasure/testenv",
"version": "1.2.1",
"version": "1.2.2",
"description": "Deploy local version of the erasure protocol for testing purposes.",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit d3ee7eb

Please sign in to comment.