From 665b15b261a74f73a6a103e6fac37800f4629521 Mon Sep 17 00:00:00 2001 From: Nanolucas Date: Sat, 2 Jan 2021 18:53:20 +0100 Subject: [PATCH] update variable name for consistency --- src/Contracts/Ethabi.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Contracts/Ethabi.php b/src/Contracts/Ethabi.php index 694a563..6f5334b 100644 --- a/src/Contracts/Ethabi.php +++ b/src/Contracts/Ethabi.php @@ -102,15 +102,15 @@ class Ethabi * encodeEventSignature * TODO: Fix same event name with different params * - * @param string|stdClass|array $functionName + * @param string|stdClass|array $eventName * @return string */ - public function encodeEventSignature($functionName) + public function encodeEventSignature($eventName) { - if (!is_string($functionName)) { - $functionName = Utils::jsonMethodToString($functionName); + if (!is_string($eventName)) { + $eventName = Utils::jsonMethodToString($eventName); } - return Utils::sha3($functionName); + return Utils::sha3($eventName); } /**