Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serderovsh committed Sep 27, 2020
1 parent e120f5b commit e28e9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TransactionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function sendTrx($to, $amount, string $from = null)
throw new TronException('Invalid amount provided');
}

if(!is_null($from)) {
if(is_null($from)) {
$from = $this->tron->address['hex'];
}

Expand Down

0 comments on commit e28e9e0

Please sign in to comment.