fix batch status
This commit is contained in:
parent
79e7b9d399
commit
3faad71b99
@ -889,8 +889,6 @@ class Contract
|
|||||||
*/
|
*/
|
||||||
public function batch($status)
|
public function batch($status)
|
||||||
{
|
{
|
||||||
$status = is_bool($status);
|
|
||||||
|
|
||||||
$this->eth->batch($status);
|
$this->eth->batch($status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -173,8 +173,6 @@ class Eth
|
|||||||
*/
|
*/
|
||||||
public function batch($status)
|
public function batch($status)
|
||||||
{
|
{
|
||||||
$status = is_bool($status);
|
|
||||||
|
|
||||||
$this->provider->batch($status);
|
$this->provider->batch($status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This file is part of web3.php package.
|
* This file is part of web3.php package.
|
||||||
*
|
*
|
||||||
* (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
|
* (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
|
||||||
*
|
*
|
||||||
* @author Peter Lai <alk03073135@gmail.com>
|
* @author Peter Lai <alk03073135@gmail.com>
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/
|
*/
|
||||||
@ -20,35 +20,35 @@ class EthMethod extends JSONRPC implements IMethod
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* validators
|
* validators
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $validators = [];
|
protected $validators = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* inputFormatters
|
* inputFormatters
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $inputFormatters = [];
|
protected $inputFormatters = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* outputFormatters
|
* outputFormatters
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $outputFormatters = [];
|
protected $outputFormatters = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* defaultValues
|
* defaultValues
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $defaultValues = [];
|
protected $defaultValues = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* construct
|
* construct
|
||||||
*
|
*
|
||||||
* @param string $method
|
* @param string $method
|
||||||
* @param array $arguments
|
* @param array $arguments
|
||||||
* @return void
|
* @return void
|
||||||
@ -60,7 +60,7 @@ class EthMethod extends JSONRPC implements IMethod
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* getInputFormatters
|
* getInputFormatters
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getInputFormatters()
|
public function getInputFormatters()
|
||||||
@ -70,7 +70,7 @@ class EthMethod extends JSONRPC implements IMethod
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* getOutputFormatters
|
* getOutputFormatters
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getOutputFormatters()
|
public function getOutputFormatters()
|
||||||
@ -80,7 +80,7 @@ class EthMethod extends JSONRPC implements IMethod
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* validate
|
* validate
|
||||||
*
|
*
|
||||||
* @param array $params
|
* @param array $params
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
@ -134,7 +134,7 @@ class EthMethod extends JSONRPC implements IMethod
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* transform
|
* transform
|
||||||
*
|
*
|
||||||
* @param array $params
|
* @param array $params
|
||||||
* @param array $rules
|
* @param array $rules
|
||||||
* @return array
|
* @return array
|
||||||
@ -155,4 +155,4 @@ class EthMethod extends JSONRPC implements IMethod
|
|||||||
}
|
}
|
||||||
return $params;
|
return $params;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -173,8 +173,6 @@ class Net
|
|||||||
*/
|
*/
|
||||||
public function batch($status)
|
public function batch($status)
|
||||||
{
|
{
|
||||||
$status = is_bool($status);
|
|
||||||
|
|
||||||
$this->provider->batch($status);
|
$this->provider->batch($status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -173,8 +173,6 @@ class Personal
|
|||||||
*/
|
*/
|
||||||
public function batch($status)
|
public function batch($status)
|
||||||
{
|
{
|
||||||
$status = is_bool($status);
|
|
||||||
|
|
||||||
$this->provider->batch($status);
|
$this->provider->batch($status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,8 +74,6 @@ class HttpProvider extends Provider implements IProvider
|
|||||||
*/
|
*/
|
||||||
public function batch($status)
|
public function batch($status)
|
||||||
{
|
{
|
||||||
$status = is_bool($status);
|
|
||||||
|
|
||||||
$this->isBatch = $status;
|
$this->isBatch = $status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,4 +110,4 @@ class HttpProvider extends Provider implements IProvider
|
|||||||
$this->methods[] = [];
|
$this->methods[] = [];
|
||||||
$this->batch = [];
|
$this->batch = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
24
src/Shh.php
24
src/Shh.php
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This file is part of web3.php package.
|
* This file is part of web3.php package.
|
||||||
*
|
*
|
||||||
* (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
|
* (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
|
||||||
*
|
*
|
||||||
* @author Peter Lai <alk03073135@gmail.com>
|
* @author Peter Lai <alk03073135@gmail.com>
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/
|
*/
|
||||||
@ -27,14 +27,14 @@ class Shh
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* methods
|
* methods
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $methods = [];
|
private $methods = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* allowedMethods
|
* allowedMethods
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $allowedMethods = [
|
private $allowedMethods = [
|
||||||
@ -64,7 +64,7 @@ class Shh
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* call
|
* call
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param array $arguments
|
* @param array $arguments
|
||||||
* @return void
|
* @return void
|
||||||
@ -110,7 +110,7 @@ class Shh
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* get
|
* get
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
@ -126,7 +126,7 @@ class Shh
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* set
|
* set
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @return mixed
|
* @return mixed
|
||||||
@ -143,7 +143,7 @@ class Shh
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* getProvider
|
* getProvider
|
||||||
*
|
*
|
||||||
* @return \Web3\Providers\Provider
|
* @return \Web3\Providers\Provider
|
||||||
*/
|
*/
|
||||||
public function getProvider()
|
public function getProvider()
|
||||||
@ -153,7 +153,7 @@ class Shh
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* setProvider
|
* setProvider
|
||||||
*
|
*
|
||||||
* @param \Web3\Providers\Provider $provider
|
* @param \Web3\Providers\Provider $provider
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
@ -168,14 +168,12 @@ class Shh
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* batch
|
* batch
|
||||||
*
|
*
|
||||||
* @param bool $status
|
* @param bool $status
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function batch($status)
|
public function batch($status)
|
||||||
{
|
{
|
||||||
$status = is_bool($status);
|
|
||||||
|
|
||||||
$this->provider->batch($status);
|
$this->provider->batch($status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -283,8 +283,6 @@ class Web3
|
|||||||
*/
|
*/
|
||||||
public function batch($status)
|
public function batch($status)
|
||||||
{
|
{
|
||||||
$status = is_bool($status);
|
|
||||||
|
|
||||||
$this->provider->batch($status);
|
$this->provider->batch($status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user