Closed PHPJourney closed 3 years ago
Hex callback null. cannot use it.
$hex = substr($hex, 2);
}
$hex = self::HexitPads($hex);
return new BcNumber(gmp_strval(gmp_init($hex, 16), 10));
}
/** * @param string|int $dec
* @return string
I think you need check this params be null.
Please try upgrading erc20-php
lib to 0.2.1
gmp_init(): Unable to convert variable to GMP - string is not an integer
I get this error. this method is balanceOf