diff --git a/src/Eth.php b/src/Eth.php index 24a168b..b1d2287 100644 --- a/src/Eth.php +++ b/src/Eth.php @@ -237,6 +237,7 @@ class Eth ] ] ], + 'eth_getCompilers' => [] ]; /** diff --git a/test/unit/EthTest.php b/test/unit/EthTest.php index 005870c..8646078 100644 --- a/test/unit/EthTest.php +++ b/test/unit/EthTest.php @@ -733,6 +733,32 @@ class EthTest extends TestCase }); } + /** + * testGetCompilers + * + * @return void + */ + public function testGetCompilers() + { + $eth = $this->eth; + + $eth->getCompilers(function ($err, $compilers) { + if ($err !== null) { + return $this->fail($err->getMessage()); + } + if (isset($compilers->result)) { + $this->assertTrue(is_string($compilers->result)); + } else { + // if (isset($compilers->error)) { + // infura banned getCompilers, $compilers->error->message + $this->assertTrue(true); + // } else { + // $this->assertTrue(true); + // } + } + }); + } + /** * testUnallowedMethod *