typo
This commit is contained in:
parent
bb87dcf866
commit
c56642198a
@ -447,7 +447,7 @@ class Contract
|
|||||||
*/
|
*/
|
||||||
public function estimateGas()
|
public function estimateGas()
|
||||||
{
|
{
|
||||||
if (isset($this->functions) || isset($this->callback)) {
|
if (isset($this->functions) || isset($this->constructor)) {
|
||||||
$arguments = func_get_args();
|
$arguments = func_get_args();
|
||||||
$callback = array_pop($arguments);
|
$callback = array_pop($arguments);
|
||||||
|
|
||||||
@ -461,7 +461,7 @@ class Contract
|
|||||||
throw new \InvalidArgumentException('The last param must be callback function.');
|
throw new \InvalidArgumentException('The last param must be callback function.');
|
||||||
}
|
}
|
||||||
if (!isset($this->bytecode)) {
|
if (!isset($this->bytecode)) {
|
||||||
throw new \InvalidArgumentException('Please call bytecode($bytecode) before new().');
|
throw new \InvalidArgumentException('Please call bytecode($bytecode) before estimateGas().');
|
||||||
}
|
}
|
||||||
$params = array_splice($arguments, 0, count($constructor['inputs']));
|
$params = array_splice($arguments, 0, count($constructor['inputs']));
|
||||||
$data = $this->ethabi->encodeParameters($constructor, $params);
|
$data = $this->ethabi->encodeParameters($constructor, $params);
|
||||||
|
Loading…
Reference in New Issue
Block a user