Throw exception when provider not set
This commit is contained in:
parent
048b5a5105
commit
9efd3bc755
@ -365,7 +365,7 @@ class Eth
|
||||
public function __call($name, $arguments)
|
||||
{
|
||||
if (empty($this->provider)) {
|
||||
return;
|
||||
throw new \RuntimeException('Please set provider first.');
|
||||
}
|
||||
|
||||
$class = explode('\\', get_class());
|
||||
|
@ -64,7 +64,7 @@ class Net
|
||||
public function __call($name, $arguments)
|
||||
{
|
||||
if (empty($this->provider)) {
|
||||
return;
|
||||
throw new \RuntimeException('Please set provider first.');
|
||||
}
|
||||
|
||||
$class = explode('\\', get_class());
|
||||
|
@ -86,7 +86,7 @@ class Web3
|
||||
public function __call($name, $arguments)
|
||||
{
|
||||
if (empty($this->provider)) {
|
||||
return;
|
||||
throw new \RuntimeException('Please set provider first.');
|
||||
}
|
||||
|
||||
$class = explode('\\', get_class());
|
||||
|
Loading…
Reference in New Issue
Block a user