-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
submit channel #64
submit channel #64
Conversation
9a007fd
to
f058c6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quotation marks on property names
i will review in depth later
865ec8d
to
929c2b4
Compare
929c2b4
to
383fba6
Compare
c039721
to
0e33db9
Compare
0e33db9
to
896be7e
Compare
routes/channel.js
Outdated
@@ -115,6 +125,27 @@ function getValidatorMessages(req, res, next) { | |||
.catch(next) | |||
} | |||
|
|||
function createCampaign(req, res, next) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename this, as well as the routes, to createChannel
and POST /channel
routes/schema.js
Outdated
return schema | ||
} | ||
|
||
function validators({ CREATORS_WHITELIST }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, other than VALIDATORS_WHITELIST
(separate thing than CREATORS_WHITELIST), this should check if the validator count is always 2; not larger, not smaller, always === 2
and when checking the whitelist, we should check VALIDATORS_WHITELIST OR === adapter.whoami()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it already checks the validator count is always 2.
599ef5b
to
3e2ba49
Compare
fixes issues #44 #30