web3p/web3.php

Contracts/Types/Address.php issue

hyperworld103 opened this issue · 0 comments

Hello
I found one issue through using the web3p library
image
I called Address.inputFormat($value, 'address') with two addresses- 0x0Dee5C5167D2463Fa17FD47aF99fb57F0B60E3D5 and 0x0000000000000000000000000000000000001000
when the address is hexadecimal value(0x0Dee5C5167D2463Fa17FD47aF99fb57F0B60E3D5),
the result(0000000000000000000000000dee5c5167d2463fa17fd47af99fb57f0b60e3d5) is correct.
But when the address is decimal value(0x0000000000000000000000000000000000001000),
the result(00000000000000000000000000000000000000000000000000000000000003e8) is incorrect.
Thank you.