-
Notifications
You must be signed in to change notification settings - Fork 44
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
Basic crafting factory pattern for discussion. #159
Conversation
Basic crafting factory pattern for discussion.
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
@alex-connolly , my understanding is that the user would need to ERC20 approve / ERC 721 approve / ERC 1155 approve the CraftingFactory contract. Would a security issue be that the user would approve the contract in the context of one game, and then another game could use the approval to do something that the user didn't authorise? |
We use If we didn't want this restriction, we could try:
But I don't think it's necessary given the use of |
We also need to put in some restrictions to make sure people can't use the flexibility of |
@alex-connolly , this PR is stale. Are you still actively working on this? Should this PR be abandoned? |
Our currently recommended approach for games building crafting mechanics is:
GuardedMulticaller
contractThere are a few problems with this approach:
Here's a new design: the
CraftingFactory
.Recipe
contracts, including admin actions