Eth NewBlockFilter method hasn't any arguments so it shouldn't have any validators

This commit is contained in:
Tomasz Cyrankowski 2019-07-25 10:30:01 +02:00 committed by tomcyr
parent b6fc44d9e3
commit d67367a2f2
2 changed files with 4 additions and 8 deletions

View File

@ -23,18 +23,14 @@ class NewBlockFilter extends EthMethod
*
* @var array
*/
protected $validators = [
QuantityValidator::class
];
protected $validators = [];
/**
* inputFormatters
*
* @var array
*/
protected $inputFormatters = [
QuantityFormatter::class
];
protected $inputFormatters = [];
/**
* outputFormatters
@ -61,4 +57,4 @@ class NewBlockFilter extends EthMethod
// {
// parent::__construct($method, $arguments);
// }
}
}

View File

@ -629,7 +629,7 @@ class EthApiTest extends TestCase
{
$eth = $this->eth;
$eth->newBlockFilter('0x01', function ($err, $filter) {
$eth->newBlockFilter(function ($err, $filter) {
if ($err !== null) {
// infura banned us to new block filter
return $this->assertTrue($err !== null);