|
|
@@ -81,7 +81,7 @@ class UsdtWalletService extends BaseService
|
|
|
*/
|
|
|
public function getTrxAddress()
|
|
|
{
|
|
|
- //try {
|
|
|
+ try {
|
|
|
$api = new Api(new Client(['base_uri' => $this->config['tron_api_url']]));
|
|
|
|
|
|
$trxWallet = new TRX($api);
|
|
|
@@ -89,11 +89,11 @@ class UsdtWalletService extends BaseService
|
|
|
$addressData = (array)$addressData;
|
|
|
return ['wif' => $addressData['privateKey'], 'hexAddress' => $addressData['hexAddress'], 'address' => $addressData['address']];
|
|
|
|
|
|
-// } catch (\Exception $exception){
|
|
|
-//
|
|
|
-// $this->error = $exception->getMessage();
|
|
|
-// return false;
|
|
|
-// }
|
|
|
+ } catch (\Exception $exception){
|
|
|
+
|
|
|
+ $this->error = $exception->getMessage();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|