Skip to content

Commit 53af7dd

Browse files
author
Roman Bylbas
committed
Renamed data property to result in the DeployExecutionResult entity and renamed speculativeDeploy RPC method to speculativeExecution
Signed-off-by: Roman Bylbas <romka.bulbas@gmail.com>
1 parent 3abf21c commit 53af7dd

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Entity/DeployExecutionResult.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ class DeployExecutionResult
66
{
77
private string $blockHash;
88

9-
private DeployExecutionResultData $data;
9+
private DeployExecutionResultData $result;
1010

11-
public function __construct(string $blockHash, DeployExecutionResultData $data)
11+
public function __construct(string $blockHash, DeployExecutionResultData $result)
1212
{
1313
$this->blockHash = $blockHash;
14-
$this->data = $data;
14+
$this->result = $result;
1515
}
1616

1717
public function getBlockHash(): string
1818
{
1919
return $this->blockHash;
2020
}
2121

22-
public function getData(): DeployExecutionResultData
22+
public function getResult(): DeployExecutionResultData
2323
{
24-
return $this->data;
24+
return $this->result;
2525
}
2626
}

src/Rpc/RpcClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function getChainspecInfo(): ChainspecRegistryBytes
437437
/**
438438
* @throws RpcError
439439
*/
440-
public function speculativeDeploy(Deploy $signedDeploy, string $blockHash = null): DeployExecutionResult
440+
public function speculativeExecution(Deploy $signedDeploy, string $blockHash = null): DeployExecutionResult
441441
{
442442
$params = array(
443443
'deploy' => DeploySerializer::toJson($signedDeploy)

src/Serializer/DeployExecutionResultSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static function toJson($deployExecutionResult): array
1313
{
1414
return array(
1515
'block_hash' => $deployExecutionResult->getBlockHash(),
16-
'execution_result' => DeployExecutionResultDataSerializer::toJson($deployExecutionResult->getData())
16+
'execution_result' => DeployExecutionResultDataSerializer::toJson($deployExecutionResult->getResult())
1717
);
1818
}
1919

0 commit comments

Comments
 (0)