You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mintNFT() returns a uint value with the projectCount, but this is not used here.
Remove unnecessary return value or use it in createProject() as projectCount replacement for saving gas with local variable.
Disputes Contract
Based in the context, there's no reason why the assertMember()L#172 should be
decleared as public, as it is not used externally anywhere and it's only used
internally in the Disputes contract. It's better to declare it as internal for gas optimizations.
Community Contract
Use of _communityProject.apr instead of _communities[_communityID].projectDetails[_project].apr
in L#692 as stated for gas optimization.
Consider adding a local variable for _msgSender() as follows: address _sender = _msgSender() in L#503 as done in Project.sol
The text was updated successfully, but these errors were encountered:
HomeFi Contract
The
mintNFT()
returns a uint value with theprojectCount
, but this is not used here.Remove unnecessary return value or use it in
createProject()
asprojectCount
replacement for saving gas with local variable.Disputes Contract
Based in the context, there's no reason why the
assertMember()
L#172 should bedecleared as public, as it is not used externally anywhere and it's only used
internally in the Disputes contract. It's better to declare it as internal for gas optimizations.
Community Contract
Use of
_communityProject.apr
instead of_communities[_communityID].projectDetails[_project].apr
in L#692 as stated for gas optimization.
Consider adding a local variable for
_msgSender()
as follows:address _sender = _msgSender()
in L#503 as done in Project.solThe text was updated successfully, but these errors were encountered: