Omniscia Alliance Block Audit
AbstractPoolsFactory Static Analysis Findings
AbstractPoolsFactory Static Analysis Findings
APF-01S: Inexistent Event Emittence
Type | Severity | Location |
---|---|---|
Standard Conformity | Informational | AbstractPoolsFactory.sol:L24-L27 |
Description:
The linked function transfers the ownership of the contract yet does not notify external listeners of the blockchain of such an event.
Example:
contracts/AbstractPoolsFactory.sol
24function transferOwnership(address newOwner) public onlyOwner {25 require(newOwner != address(0x0), "Cannot set owner to 0 address");26 owner = newOwner;27}
Recommendation:
We recommend that an event
is declared within the contract as well as emitted during the execution of transferOwnership
to signify the transfer of ownership to a new account.
Alleviation:
An event was properly introduced signaling the ownershipt transfer process to a new address.