-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
improvementchanges that improve the security, or performance of the code without modifying the functionalitychanges that improve the security, or performance of the code without modifying the functionality
Description
There's a few places we use a public view where we could have an internal view that's accessible by way of another external view.
For example:
function getNftQuestFee(address address_) public view returns (uint256) {
return nftQuestFeeList[address_].exists ? nftQuestFeeList[address_].fee : nftQuestFee;
}
Would become:
function getNftQuestFee(address address_) external view returns (uint256) {
_getNftQuestFee(address_);
}
function _getNftQuestFee(address address_) internal view returns (uint256) {
return nftQuestFeeList[address_].exists ? nftQuestFeeList[address_].fee : nftQuestFee;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
improvementchanges that improve the security, or performance of the code without modifying the functionalitychanges that improve the security, or performance of the code without modifying the functionality