Skip to content

Commit

Permalink
Merge pull request verze-app#45 from ComradePashka/main
Browse files Browse the repository at this point in the history
nullable return type for getConfirmedTransaction and getTransaction
  • Loading branch information
neverything authored Aug 7, 2022
2 parents 7b1e6ae + 3da5b21 commit 042d668
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public function getBalance(string $pubKey): float

/**
* @param string $transactionSignature
* @return array
* @return array|null
*/
public function getConfirmedTransaction(string $transactionSignature): array
public function getConfirmedTransaction(string $transactionSignature): array|null
{
return $this->client->call('getConfirmedTransaction', [$transactionSignature]);
}
Expand All @@ -44,9 +44,9 @@ public function getConfirmedTransaction(string $transactionSignature): array
* NEW: This method is only available in solana-core v1.7 or newer. Please use getConfirmedTransaction for solana-core v1.6
*
* @param string $transactionSignature
* @return array
* @return array|null
*/
public function getTransaction(string $transactionSignature): array
public function getTransaction(string $transactionSignature): array|null
{
return $this->client->call('getTransaction', [$transactionSignature]);
}
Expand Down

0 comments on commit 042d668

Please sign in to comment.