isDynamicType

This commit is contained in:
sc0Vu 2018-01-17 11:56:37 +08:00
parent ae7f8983e5
commit 571cf7f7c5

View File

@ -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)
{}
}