From f97d4c9397b18c798c6130bd0bfa2436947a3dc3 Mon Sep 17 00:00:00 2001 From: Pavel Rubin Date: Tue, 3 Apr 2018 07:04:47 +0300 Subject: [PATCH] Remove `to` parameter when publishing contract transaction --- src/Contract.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Contract.php b/src/Contract.php index 72119ac..b6c334a 100644 --- a/src/Contract.php +++ b/src/Contract.php @@ -397,7 +397,6 @@ class Contract if (count($arguments) > 0) { $transaction = $arguments[0]; } - $transaction['to'] = ''; $transaction['data'] = '0x' . $this->bytecode . Utils::stripZero($data); $this->eth->sendTransaction($transaction, function ($err, $transaction) use ($callback){