Calm Fiery Llama
Medium
Ethos contracts should implement the targetExistsAndAllowedForId()
function to check if an id exists for a contract. However, this function is not implemented in ReputationMarket.sol
, which results in users being unable to add a reply or vote for a ReputationMarket entity.
In the EthosDiscussion::addReply() and EthosVote::voteFor() functions, ITargetStatus(targetContract).targetExistsAndAllowedForId(targetId)
is always checked. Since ReputationMarket doesn't implement this function, users cannot add a reply or vote for a ReputationMarket entity.
None.
None.
- A user calls
EthosVote::voteFor()
orEthosDiscussion::addReply()
to add a reply or vote for a ReputationMarket entity, but the call reverts asReputationMarket.sol
does not implementtargetExistsAndAllowedForId()
function.
Users cannot add a reply or vote for a ReputationMarket.
No response
Implement the targetExistsAndAllowedForId()
function for ReputationMarket.sol
.