web3p / web3.php

A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.
MIT License
1.17k stars 555 forks source link

Contracts/Types/Address.php issue #334

Open hyperworld103 opened 1 year ago

hyperworld103 commented 1 year ago

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.