Checks if a contract emits a log

function simEmitsLog(address addr, string canonicalSignature) internal returns (bool result)

Parameters

NameTypeDescription
addraddressthe contract's address
canonicalSignaturestringe.g. Transfer(address,uint256)

Return Values

NameTypeDescription
resultbooltrue if the contract emits the log, otherwise false

Notes

  1. If the address passed to simEmitsLog is not a contract, the result will be false.