Change host.

This commit is contained in:
sc0Vu 2018-01-12 15:40:13 +08:00
parent bd00f0d790
commit 7b5543138b
2 changed files with 8 additions and 2 deletions

View File

@ -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;
}

View File

@ -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) {