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;
}
There's a few places we use a
public viewwhere we could have aninternal viewthat's accessible by way of anotherexternal view.For example:
Would become: