testHost); $this->web3 = $web3; $asyncHttpProvider = new HttpAsyncProvider($this->testHost); $this->asyncHttpProvider = $asyncHttpProvider; $web3->eth->coinbase(function ($err, $coinbase) use ($web3) { if ($err !== null) { return $this->fail($err->getMessage()); } // if ($coinbase === $this->EMPTY_ADDRESS) { // $web3->eth->accounts(function ($err, $accounts) { // if ($err !== null) { // return $this->fail($err->getMessage()); // } // $this->coinbase = $accounts[rand(0, count($accounts) - 1)]; // }); // } else { $this->coinbase = $coinbase; // } }); } /** * tearDown */ public function tearDown(): void {} }