sherlock-audit / 2024-10-ethos-network-judging

0 stars 0 forks source link

Acrobatic Burlap Lizard - ContractAddressManager:getContractAddressForName() should revert if contract is not found #332

Closed sherlock-admin3 closed 3 weeks ago

sherlock-admin3 commented 3 weeks ago

Acrobatic Burlap Lizard

Low/Info

ContractAddressManager:getContractAddressForName() should revert if contract is not found

Summary

ContractAddressManager:getContractAddressForName() should internally check require(contractAddressForName[name] != address(0) because actors calling that function do not perform that check

Root Cause

No response

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

No response

PoC

No response

Mitigation

add require(contractAddressForName[name] != address(0)