Skip to content

Commit

Permalink
fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanSeehaus committed Oct 6, 2022
1 parent 5e73ee5 commit d7772ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use tanglePHP\FaucetClient\Api\v1\Response\Info;
use tanglePHP\SingleNodeClient\Action\sendTransaction;
use tanglePHP\SingleNodeClient\Api\v2\Response\Error;
use tanglePHP\SingleNodeClient\Api\v2\Response\SubmitBlock;
use tanglePHP\Core\Crypto\Mnemonic;
use tanglePHP\Core\Exception\Api as ApiException;
use tanglePHP\Core\Exception\Converter as ConverterException;
Expand All @@ -16,14 +15,15 @@
use tanglePHP\Core\Helper\Converter;
use tanglePHP\Core\Type\Ed25519Seed;
use SodiumException;
use tanglePHP\SingleNodeClient\Models\ReturnSubmitBlock;

/**
* Class Connector
*
* @package tanglePHP\FaucetClient
* @author Stefan Braun <stefan.braun@tanglePHP.com>
* @copyright Copyright (c) 2022, StefanBraun
* @version 2022.09.05-1150
* @version 2022.10.06-0933
*/
final class Connector extends AbstractConnector {
/**
Expand Down Expand Up @@ -61,15 +61,15 @@ public function getFunds(string $address): Enqueue {
* @param int $accountIndex
* @param int $addressIndex
*
* @return SubmitBlock|Error
* @return ReturnSubmitBlock|Error
* @throws ApiException
* @throws ConverterException
* @throws CryptoException
* @throws HelperException
* @throws SodiumException
* @throws TypeException
*/
public function sendFundsBack(int|string|AbstractAmount $amount, Ed25519Seed|Mnemonic|string|array $seedInput, int $accountIndex = 0, int $addressIndex = 0): SubmitBlock|Error {
public function sendFundsBack(int|string|AbstractAmount $amount, Ed25519Seed|Mnemonic|string|array $seedInput, int $accountIndex = 0, int $addressIndex = 0): ReturnSubmitBlock|Error {
return (new sendTransaction($this->ENDPOINT->network->singleNode))->seedInput($seedInput)
->accountIndex($accountIndex)
->addressIndex($addressIndex)
Expand Down

0 comments on commit d7772ef

Please sign in to comment.