-
Notifications
You must be signed in to change notification settings - Fork 375
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
faucet realm package #372
faucet realm package #372
Conversation
gInPause = false | ||
gMessage = "# Community Faucet.\n\n" | ||
gAdminAddr std.Address = "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5" | ||
gControllers [3]std.Address = [3]std.Address{} // limit it to 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gControllers [3]std.Address = [3]std.Address{} // limit it to 3 | |
gControllers []std.Address = []std.Address{} |
why a limit of 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
I think we should always use an array instead of a slice to limit resource usage to avoid abuse.
-
We can set the number to 100 if necessary. I think three faucet bot controllers are good enough for now, and we can replace each one of these controllers with provided API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see your point, and it's a good idea to show good practices.
Let's update the limit to 10.
gControllers [3]std.Address = [3]std.Address{} // limit it to 3 | |
gControllers [10]std.Address = [10]std.Address{} // limit it to 10 |
Hey @piux2, Can you:
|
The code is to complete the example. We don't need to load it when starting test3 gnoland. We will deploy the contract separately since it requires a large amount of deposit to fund the faucet when deploying the contract.