You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- So if there is a provider like meta or mist, I should just use them. Then if there is no provider, I should just send HTTP requests to my NodeJS server, right? I didn't really work with backend, so sorry if I got something wrong. One more question: in my contract there are functions that can be run by owner address only. Does it mean that if I want users get some info via my owner account I should add new functions, so they didn't get more info than they should? Or I just need to deploy contract from one account and then use another one to use it in nodejs server? Thank you anyway!porfavorite– porfavorite2017-07-09 08:52:17 +00:00Commented Jul 9, 2017 at 8:52
- NodeJS will work as a middleware and there has to be a provider in a background for your DApp to work and your DApp's UI shall talk to NodeJS server through HTTP requests as you mentioned.Sanchit– Sanchit2017-07-09 09:47:13 +00:00Commented Jul 9, 2017 at 9:47
- You don't need to deploy another contract. You can create another modifier like OnlyMember, which will not have owner privileges but would be able to access some information which you want them to access.Sanchit– Sanchit2017-07-09 09:51:21 +00:00Commented Jul 9, 2017 at 9:51
- I implemented OnlyMember modifier in one of the contracts I wrote, you can take a look for the reference - github.com/inovizz/lms/blob/master/contracts/LMS.solSanchit– Sanchit2017-07-09 09:52:05 +00:00Commented Jul 9, 2017 at 9:52
- thanks, but I meant that if I use nodejs server that interacts with the ethereum node using my deploying account, that means that all HTTP requests to the nodejs server will be processed by this server using my 'owner' contract, which means the msg.sender will be owner and the onlyMember modifier doesn't make much sense. That's why I asked maybe somehow I should use another contract on my ethereum node, not which I used to deploy the contract.porfavorite– porfavorite2017-07-09 10:29:03 +00:00Commented Jul 9, 2017 at 10:29
| Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. go-ethereum), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-js