Support TRON's TRX and TRC20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash
MIT License
194
stars
65
forks
source link
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Tron\TRX::__construct(), 1 passed #42
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Tron\TRX::__construct(), 1 passed in /root/test.php on line 9 and exactly 2 expected in /root/vendor/fenguoz/tron-php/src/TRX.php:19
Stack trace:
0 /root/tt.php(9): Tron\TRX->__construct()
1 {main}
thrown in /root/vendor/fenguoz/tron-php/src/TRX.php on line 19
直接使用例子出現下面這問題,我的版本是 php8.2 這需要怎麼修改呢?
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Tron\TRX::__construct(), 1 passed in /root/test.php on line 9 and exactly 2 expected in /root/vendor/fenguoz/tron-php/src/TRX.php:19 Stack trace:
0 /root/tt.php(9): Tron\TRX->__construct()
1 {main}
thrown in /root/vendor/fenguoz/tron-php/src/TRX.php on line 19
謝謝