From a8be114c88bb318468119e1ea3d8ffb26ddad35b Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Tue, 2 Jan 2018 16:46:26 +0800 Subject: [PATCH] Remove contract constructor toAddress. --- src/Contract.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Contract.php b/src/Contract.php index 77db643..d3a5e8e 100644 --- a/src/Contract.php +++ b/src/Contract.php @@ -99,10 +99,9 @@ class Contract * * @param mixed string | Web3\Providers\Provider $provider * @param mixed string | stdClass | array $abi - * @param string $toAddress * @return void */ - public function __construct($provider, $abi, $toAddress='') + public function __construct($provider, $abi) { if (is_string($provider) && (filter_var($provider, FILTER_VALIDATE_URL) !== false)) { // check the uri schema @@ -128,10 +127,6 @@ class Contract } } $this->abi = $abi; - - if (is_string($toAddress)) { - $this->toAddress = $toAddress; - } $this->eth = new Eth($this->provider); $this->ethabi = new Ethabi([ 'address' => new Address,