Closed dckc closed 6 years ago
Moving the tests to json looks great. I don't understand the stuff about rhol template though. Tests do pass.
Should I merge?
I don't understand the stuff about rhol template though.
Then I guess this shouldn't merge until there are docs.
Any chance the standard MDN docs on Tagged templates do it for you?
@dckc I've read and understood the mozilla docs, and made a minor comment on your code.
Just to be clear, this change does not affect the //TODO
in the code we hacked together for RChain-Status, right? I can file a separate issue for that, but please confirm I'm understanding correctly first.
const rholangCode = rho`
new lookup(\`rho:registry:lookup\`), registerCh in {
lookup!(\`URI\`, *registerCh)|
for (registerForStatus <- registerCh){
registerForStatus!(${req.params.name}, ${req.query.sig}, ${req.query.pubKey}, "bogusReturn")
}
}
`.replace("URI", uri) //TODO Do this better
Correct; this code doesn't address the fact that URIs are not expressible in RHOCore.
fixes #16