Skip to content

Commit

Permalink
Update TransactionInfo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ranabd36 authored Dec 19, 2019
1 parent dfd412c commit cfbdb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types/TransactionInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(array $response)
$this->s = $response['s'];

$input = Util::decodeInput($response['input']);
if (!empty($input)) {
if (!empty($input) && !is_null($this->to)) {
if ($input[0] == 'transfer') {
$this->contractAddress = new ContractAddress($this->to);
if (AddressValidator::validate($input[1])) {
Expand Down

0 comments on commit cfbdb5f

Please sign in to comment.