Open inmarelibero opened 1 year ago
After calling a method that returns string[] on blockchain Polygon, I have the following response:
string[]
0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001272656469726563742e574542534954452e300000000000000000000000000000
this should be converted into the string (try with https://www.rapidtables.com/convert/number/hex-to-ascii.html also, removing the initial 0x):
0x
redirect.WEBSITE.0
but it's interpreted as:
\x00
I think the problem could be around https://github.com/web3p/web3.php/blob/master/src/Contracts/SolidityType.php#L241, but I can't figure it out. It seems like only a portion of the hex response is considered, instead of the complete one
any clue?
I can pay whoever contributes to resolve this
@inmarelibero, hello! have you find a solution for this?
@cyanerd unfortunately not, I resolved using another tool not in PHP
After calling a method that returns
string[]
on blockchain Polygon, I have the following response:this should be converted into the string (try with https://www.rapidtables.com/convert/number/hex-to-ascii.html also, removing the initial
0x
):but it's interpreted as:
I think the problem could be around https://github.com/web3p/web3.php/blob/master/src/Contracts/SolidityType.php#L241, but I can't figure it out. It seems like only a portion of the hex response is considered, instead of the complete one
any clue?