Eth getUncleCountByHash output formatter.
This commit is contained in:
parent
808134f19f
commit
f8d005dae1
@ -15,6 +15,7 @@ use InvalidArgumentException;
|
||||
use Web3\Methods\EthMethod;
|
||||
use Web3\Validators\BlockHashValidator;
|
||||
use Web3\Formatters\HexFormatter;
|
||||
use Web3\Formatters\BigNumberFormatter;
|
||||
|
||||
class GetUncleCountByBlockHash extends EthMethod
|
||||
{
|
||||
@ -41,7 +42,9 @@ class GetUncleCountByBlockHash extends EthMethod
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $outputFormatters = [];
|
||||
protected $outputFormatters = [
|
||||
BigNumberFormatter::class
|
||||
];
|
||||
|
||||
/**
|
||||
* defaultValues
|
||||
|
@ -262,7 +262,7 @@ class EthApiTest extends TestCase
|
||||
if ($err !== null) {
|
||||
return $this->assertTrue($err !== null);
|
||||
}
|
||||
$this->assertTrue(is_string($uncleCount));
|
||||
$this->assertTrue(is_numeric($uncleCount->toString()));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user