Closed krigga closed 1 year ago
Ty for report!
Fixed in 0.1.2
It seems that the Deployer
class still has that same bug, affecting examples/deployer/deploy-wallet.php
(debug) External message construction for deploy Olifanton\Ton\Contracts\Wallets\V4\WalletV4R2
Fatal error: Uncaught TypeError: Olifanton\Ton\Deployer::createExternal(): Argument #3 ($seqno) must be of type int, null given, called in /ton/src/Olifanton/Ton/Deployer.php on line 53 and defined in /ton/src/Olifanton/Ton/Deployer.php:155
Stack trace:
#0 /ton/src/Olifanton/Ton/Deployer.php(53): Olifanton\Ton\Deployer->createExternal(Object(Olifanton\Ton\DeployOptions), Object(Olifanton\Ton\Contracts\Wallets\V4\WalletV4R2), NULL)
#1 /ton/examples/deployer/deploy-wallet.php(43): Olifanton\Ton\Deployer->deploy(Object(Olifanton\Ton\DeployOptions), Object(Olifanton\Ton\Contracts\Wallets\V4\WalletV4R2))
#2 {main}
thrown in /ton/src/Olifanton/Ton/Deployer.php on line 155
It seems that the
Deployer
class still has that same bug, affectingexamples/deployer/deploy-wallet.php
I did not suggest such a case when an uninitialized wallet will be used in deployer
When trying to run examples (i.e.
examples/wallets/send-transaction.php
) with a freshly created wallet that has funds but is not yet initialized, the examples fail with something like:because get methods cannot be run on uninitialized accounts.