Merge pull request #154 from tomcyr/master

Fix call Eth NewBlockFilter
This commit is contained in:
Peter Lai 2019-07-30 11:48:05 +08:00 committed by GitHub
commit 8a34582d23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

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

View File

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