eth_getCompilers
This commit is contained in:
parent
24deddeade
commit
630b7fc52a
@ -237,6 +237,7 @@ class Eth
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
'eth_getCompilers' => []
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
* testUnallowedMethod
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user