From cfbdb5fda07210de2a20cb3cf08e744ada16764a Mon Sep 17 00:00:00 2001 From: "Moh. Ibrahim Al Naz Rana" Date: Thu, 19 Dec 2019 20:46:53 +0600 Subject: [PATCH] Update TransactionInfo.php --- src/Types/TransactionInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])) {