Open mikedotexe opened 3 years ago
If multiple claims are to be allowed on the same bounty by the same user, could you check this PR out @mikedotexe ?
https://github.com/mikedotexe/sputnik-dao-contract/pull/3
Is there more info about this PR, issue is still not closed?
Is there more info about this PR, issue is still not closed?
I believe this needs a merge of the external PRs into a PR for this main repo. I do not see code that reflects the change.
Currently there is nothing stopping a user from calling
bounty_claim
on the same bounty ID multiple times. This will likely happen by accident but confuses the logic in the rest of the contract, which assumes that an account only has one claim per bounty.If a bounty has been paid out via an approval of a
BountyDone
proposal, it'll remove one key-value pair, but not additional ones. It does work for the user to callbounty_giveup
to remove the other, however since this is an strange case, it may not be discoverable via a frontend.At the end of the day, it just make sense to make this limit for usability.
You can check this in the branch for #28 which takes care of another issue by using this script: