From bb9f9f08e7066da752f7ab8cc2d3b5ba33e587a5 Mon Sep 17 00:00:00 2001 From: Nanolucas Date: Sun, 21 Feb 2021 23:04:25 +0100 Subject: [PATCH] added comment --- src/Contract.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Contract.php b/src/Contract.php index 424729d..d98c7ca 100644 --- a/src/Contract.php +++ b/src/Contract.php @@ -928,6 +928,7 @@ class Contract //decode the indexed parameter data for ($i = 0; $i < count($eventIndexedParameterNames); $i++) { + //topics[0] is the event signature, so we start from $i + 1 for the indexed parameter data $decodedData[$eventIndexedParameterNames[$i]] = $this->ethabi->decodeParameters([$eventIndexedParameterTypes[$i]], $object->topics[$i + 1])[0]; }