|
6 | 6 |
|
7 | 7 | use GrapheneNodeClient\Commands\CommandQueryData;
|
8 | 8 | 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; |
12 | 12 | use GrapheneNodeClient\Connectors\ConnectorInterface;
|
13 | 13 | use GrapheneNodeClient\Tools\ChainOperations\OperationSerializer;
|
14 | 14 | use t3ran13\ByteBuffer\ByteBuffer;
|
@@ -43,17 +43,6 @@ public static function init(ConnectorInterface $connector)
|
43 | 43 | $tx = null;
|
44 | 44 | $chainName = $connector->getPlatform();
|
45 | 45 |
|
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) { |
57 | 46 | $command = new GetDynamicGlobalPropertiesCommand($connector);
|
58 | 47 | $commandQueryData = new CommandQueryData();
|
59 | 48 | $properties = $command->execute(
|
@@ -98,7 +87,6 @@ public static function init(ConnectorInterface $connector)
|
98 | 87 | ]]
|
99 | 88 | );
|
100 | 89 | }
|
101 |
| - } |
102 | 90 |
|
103 | 91 | if (!($tx instanceof CommandQueryDataInterface)) {
|
104 | 92 | throw new \Exception('cant init Tx');
|
|
0 commit comments