Comments (6)
Yeah, reward mapping
wasn't used anywhere in the contract the rewardMember
function only increases the balances
mapping but to do that the member must have at least a rating of 3. Balances remained at zero because each member's rating could not be changed this was because memory was used instead of storage as the data location for __memberstruct
in rateMember
. Addresses could not be whitelisted and blacklisted because of this same issue. Check my pull request, I implemented the changes so all the functions work properly now.
from 500ngdev4ethtokenreward.
@nonseodion that will be great, can't wait to see your PR.
from 500ngdev4ethtokenreward.
@nonseodion why do you have to merge your PR yourself.We should allow somebody be in charge of merging for easy coordination.If everyone merges their work both good and bad the whole test branch or even master branch will be a mess.
from 500ngdev4ethtokenreward.
Really sorry about that I didn't realize that would be the case. Won't happen again.
from 500ngdev4ethtokenreward.
@nonseodion why do you have to merge your PR yourself.We should allow somebody be in charge of merging for easy coordination.If everyone merges their work both good and bad the whole test branch or even master branch will be a mess.
Yeah, I think our mentor will best suited to merge PR's
from 500ngdev4ethtokenreward.
I believe the reward mapping ,rateMember and rewardMember functions are not communicating.I tested the code on remix and found out that after rating a whitelisted member 5 times using an admin address which should give 10 points which is equivalent to 1 star and then the rewardmember function should reward the member but this is not the case because balances remain at 0 even after a member is rewarded.May be we need to integrate a proper token code into the rewardToken contract with its total supply,symbol and name which will then be used as a reward .
Obviously, Instructor said contract is incomplete as we are yet to mint the token. But it seems that already showed up on the files. Gotta check it out.
from 500ngdev4ethtokenreward.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 500ngdev4ethtokenreward.