diff --git a/src/Contract.php b/src/Contract.php index dd682c8..7f585c4 100644 --- a/src/Contract.php +++ b/src/Contract.php @@ -893,6 +893,11 @@ class Contract $eventLogData = []; + //if there's no data for this event, no need to proceed further + if (!array_key_exists($eventName, $this->events)) { + return $eventLogData; + } + //indexed and non-indexed event parameters must be treated separately //indexed parameters are stored in the 'topics' array //non-indexed parameters are stored in the 'data' value