Giter Site home page Giter Site logo

Function bugs about 500ngdev4ethtokenreward HOT 6 OPEN

Jaylukmann avatar Jaylukmann commented on July 20, 2024
Function bugs

from 500ngdev4ethtokenreward.

Comments (6)

nonseodion avatar nonseodion commented on July 20, 2024

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.

Jaylukmann avatar Jaylukmann commented on July 20, 2024

@nonseodion that will be great, can't wait to see your PR.

from 500ngdev4ethtokenreward.

Jaylukmann avatar Jaylukmann commented on July 20, 2024

@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.

nonseodion avatar nonseodion commented on July 20, 2024

Really sorry about that I didn't realize that would be the case. Won't happen again.

from 500ngdev4ethtokenreward.

c-n-o-t-e avatar c-n-o-t-e commented on July 20, 2024

@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.

bobeu avatar bobeu commented on July 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.