Catch methods.
This commit is contained in:
parent
8ed8d69362
commit
6c4e422bfd
@ -95,6 +95,9 @@ class Net
|
||||
// new the method
|
||||
$methodClass = sprintf("\Web3\Methods\%s\%s", ucfirst($class[1]), ucfirst($name));
|
||||
$methodObject = new $methodClass($method, $arguments);
|
||||
$this->methods[$method] = $methodObject;
|
||||
} else {
|
||||
$methodObject = $this->methods[$method];
|
||||
}
|
||||
$inputs = $methodObject->transform($arguments, $methodObject->inputFormatters);
|
||||
$methodObject->arguments = $inputs;
|
||||
|
@ -128,6 +128,9 @@ class Web3
|
||||
// new the method
|
||||
$methodClass = sprintf("\Web3\Methods\%s\%s", ucfirst($class[1]), ucfirst($name));
|
||||
$methodObject = new $methodClass($method, $arguments);
|
||||
$this->methods[$method] = $methodObject;
|
||||
} else {
|
||||
$methodObject = $this->methods[$method];
|
||||
}
|
||||
$inputs = $methodObject->transform($arguments, $methodObject->inputFormatters);
|
||||
$methodObject->arguments = $inputs;
|
||||
|
Loading…
Reference in New Issue
Block a user