Skip to content

Commit 50de4e3

Browse files
committed
upd Transaction.php
commands namespace was updated to Single deprecated code was deleted
1 parent 8d94c73 commit 50de4e3

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Tools/Transaction.php

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
use GrapheneNodeClient\Commands\CommandQueryData;
88
use GrapheneNodeClient\Commands\CommandQueryDataInterface;
9-
use GrapheneNodeClient\Commands\DataBase\GetBlockCommand;
10-
use GrapheneNodeClient\Commands\DataBase\GetDynamicGlobalPropertiesCommand;
11-
use GrapheneNodeClient\Commands\Login\LoginCommand;
9+
use GrapheneNodeClient\Commands\Single\GetBlockCommand;
10+
use GrapheneNodeClient\Commands\Single\GetDynamicGlobalPropertiesCommand;
11+
use GrapheneNodeClient\Commands\Single\LoginCommand;
1212
use GrapheneNodeClient\Connectors\ConnectorInterface;
1313
use GrapheneNodeClient\Tools\ChainOperations\OperationSerializer;
1414
use t3ran13\ByteBuffer\ByteBuffer;
@@ -43,17 +43,6 @@ public static function init(ConnectorInterface $connector)
4343
$tx = null;
4444
$chainName = $connector->getPlatform();
4545

46-
$command = new LoginCommand($connector);
47-
$commandQueryData = new CommandQueryData();
48-
$commandQueryData->setParams(
49-
['', '']
50-
);
51-
$isLogin = $command->execute(
52-
$commandQueryData,
53-
'result'
54-
);
55-
56-
if ($isLogin === true) {
5746
$command = new GetDynamicGlobalPropertiesCommand($connector);
5847
$commandQueryData = new CommandQueryData();
5948
$properties = $command->execute(
@@ -98,7 +87,6 @@ public static function init(ConnectorInterface $connector)
9887
]]
9988
);
10089
}
101-
}
10290

10391
if (!($tx instanceof CommandQueryDataInterface)) {
10492
throw new \Exception('cant init Tx');

0 commit comments

Comments
 (0)