web3p / web3.php

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

array_fill(): Number of elements can't be negative #268

Open ghostza1209 opened 2 years ago

ghostza1209 commented 2 years ago

ErrorException array_fill(): Number of elements can't be negative

I got this error when the token Id was more than 64 digits.

sc0Vu commented 2 years ago

Interesting, what kind of token, ERC721?

kaiesh commented 2 years ago

This looks like it is related to the hex value of the number being generated with two's complement enabled. If the integer is not negative, then two's complement should not be required.

kaiesh commented 2 years ago

PR submitted for consideration to close this issue