|
|
@@ -71,14 +71,15 @@ class TRC20 extends TRX
|
|
|
if (isset($body['result']['code'])) {
|
|
|
throw new TransactionException(hex2bin($body['result']['message']));
|
|
|
}
|
|
|
-
|
|
|
+ var_dump($body['transaction']);
|
|
|
+ var_dump($tradeobj);
|
|
|
try {
|
|
|
$tradeobj = $this->tron->signTransaction($body['transaction']);
|
|
|
$response = $this->tron->sendRawTransaction($tradeobj);
|
|
|
} catch (TronException $e) {
|
|
|
throw new TransactionException($e->getMessage(), $e->getCode());
|
|
|
}
|
|
|
-
|
|
|
+ var_dump($response);die();
|
|
|
if (isset($response['result']) && $response['result'] == true) {
|
|
|
return new Transaction(
|
|
|
$body['transaction']['txID'],
|