From 7b5543138b2217f4dafa75894983c0b2d743176e Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Fri, 12 Jan 2018 15:40:13 +0800 Subject: [PATCH] Change host. --- test/TestCase.php | 9 ++++++++- test/unit/ContractTest.php | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/TestCase.php b/test/TestCase.php index ed6e437..780e377 100644 --- a/test/TestCase.php +++ b/test/TestCase.php @@ -21,6 +21,13 @@ class TestCase extends BaseTestCase */ protected $testRinkebyHost = 'https://rinkeby.infura.io/vuethexplore'; + /** + * testHost + * + * @var string + */ + protected $testHost = 'http://localhost:8545'; + /** * setUp * @@ -28,7 +35,7 @@ class TestCase extends BaseTestCase */ public function setUp() { - $web3 = new Web3($this->testRinkebyHost); + $web3 = new Web3($this->testHost); $this->web3 = $web3; } diff --git a/test/unit/ContractTest.php b/test/unit/ContractTest.php index 4f24078..538a97b 100644 --- a/test/unit/ContractTest.php +++ b/test/unit/ContractTest.php @@ -304,7 +304,6 @@ class ContractTest extends TestCase { parent::setUp(); - // $this->contract = new Contract('http://localhost:8545', $this->testAbi); $this->contract = new Contract($this->web3->provider, $this->testAbi); $this->contract->eth->accounts(function ($err, $accounts) { if ($err === null) {