Change host.
This commit is contained in:
parent
bd00f0d790
commit
7b5543138b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user