diff --git a/src/Contracts/Ethabi.php b/src/Contracts/Ethabi.php index 27e003a1..d68d8c4f 100644 --- a/src/Contracts/Ethabi.php +++ b/src/Contracts/Ethabi.php @@ -370,6 +370,20 @@ protected function encodeWithOffset($type, $solidityType, $encoded, $offset) } return $result; } + + //配列形式の場合、各要素を必要なら加工の上で直結 + if (is_array($encoded)) { + $resultStr = ''; + foreach ($encoded as $item) { + if (is_string($item)) { + $resultStr .= $item; + } else { + $resultStr .= dechex($item); + } + } + return $resultStr; + } + return $encoded; }