From d67367a2f2c70526f20459b96acbc24157721888 Mon Sep 17 00:00:00 2001 From: Tomasz Cyrankowski Date: Thu, 25 Jul 2019 10:30:01 +0200 Subject: [PATCH] Eth NewBlockFilter method hasn't any arguments so it shouldn't have any validators --- src/Methods/Eth/NewBlockFilter.php | 10 +++------- test/unit/EthApiTest.php | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Methods/Eth/NewBlockFilter.php b/src/Methods/Eth/NewBlockFilter.php index 863ce2c..e9688d9 100644 --- a/src/Methods/Eth/NewBlockFilter.php +++ b/src/Methods/Eth/NewBlockFilter.php @@ -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); // } -} \ No newline at end of file +} diff --git a/test/unit/EthApiTest.php b/test/unit/EthApiTest.php index 7593fa9..600fa61 100644 --- a/test/unit/EthApiTest.php +++ b/test/unit/EthApiTest.php @@ -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);