diff --git a/src/Types/TransactionInfo.php b/src/Types/TransactionInfo.php index 2baef2e..b43be76 100644 --- a/src/Types/TransactionInfo.php +++ b/src/Types/TransactionInfo.php @@ -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])) {