From 571cf7f7c5ab54a5c0c1e80668cebfa6282eeb77 Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Wed, 17 Jan 2018 11:56:37 +0800 Subject: [PATCH] isDynamicType --- src/Contracts/Ethabi.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Contracts/Ethabi.php b/src/Contracts/Ethabi.php index c826d7d..b0fa7e3 100644 --- a/src/Contracts/Ethabi.php +++ b/src/Contracts/Ethabi.php @@ -291,4 +291,29 @@ class Ethabi } return $result; } + + /** + * decodeParameter + * + * @param string $type + * @param mixed $param + * @return string + */ + public function decodeParameter($type, $param) + { + if (!is_string($type)) { + throw new InvalidArgumentException('The type to decodeParameter must be string.'); + } + return $this->decodeParameters([$type], [$param]); + } + + /** + * decodeParameters + * + * @param stdClass|array $type + * @param array $param + * @return string + */ + public function decodeParameters($type, $param) + {} } \ No newline at end of file