In contract sol file I have function definition:
function product(uint32 _prdId) public view
returns (uint32 prdId, string prdName, address prd, uint closeTime,
uint promoTime,uint8 bonus, uint256 price, uint8 numberOfOptions,
uint256 totalSupply, uint8 status, uint32 next)
I'm calling this using:
$result[] = $schemaContract->product(new EthQ($prdId, ['abi'=>'uint32']));
And as result I'm receiving the error:
InvalidArgumentException: NOT IN RANGE:
33305383022926077062160769047565073723568839191253455377021159521291545790954752953639166213543... (967 digits) ...> (u)int256 in /home/.../public_html/test/ethereum-php-master/src/DataType/EthQ.php:153 Stack trace:
#0 /home/.../public_html/test/ethereum-php-master/src/DataType/EthQ.php(100): Ethereum\DataType\EthQ->getAbiFromNumber(Object(Math_BigInteger))
#1 /home/.../public_html/test/ethereum-php-master/src/DataType/EthDataType.php(112): Ethereum\DataType\EthQ->validate('0x0000000000000...', Array)
#2 /home/.../public_html/test/ethereum-php-master/src/DataType/EthD.php(138): Ethereum\DataType\EthDataType->setValue('0x0000000000000...', Array)
#3 /home/.../public_html/test/ethereum-php-master/src/DataType/EthQ.php(45): Ethereum\DataType\EthD->__construct('0x0000000000000...', Array)
#4 /home/.../public_html/test/ethereum-php-master/src/DataType/EthD.php(199): Ethereum\DataType\EthQ->__construct('0x0000000000000...', Array)
#5 /home/.../public_html/test/ethereum-php-master/src/SmartContract.php(92): Ethereum\DataType\EthD->convertByAbi('uint32')
#6 /home/.../public_html/test/ethereum-php-master/testcontract.php(63): Ethereum\SmartContract->__call('product', Array)
#7 {main}Unable to connect.
I have no idea how to receive outbound parameters. I think I should also use abi (the same as for sending parameters) for decoding this string of numbers but don't know how and if it is good path.
Thanks for any ideas, Best regards, TB