Skip to content
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

How to apply mapping? Betting on multiple matches using 1 address? #1

Open
laronlineworld opened this issue Aug 24, 2021 · 0 comments

Comments

@laronlineworld
Copy link
Owner

laronlineworld commented Aug 24, 2021

how to change the data structure of playerInfo so that instead of one value for playerInfo[msg.sender].matchSelected, it would have a mapping of values. Also, you need to include resultSelected in the mapping so that the relation with matchSelected remains traceable. How can I apply the mapping of values and verify it on betting so that user can bet on different matches. full code:https://github.com/laronlineworld/bettingMatch/blob/main/bettingMatch.sol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@laronlineworld and others