Merge pull request #105 from amateescu/patch-1
Don't send an empty "to" address when estimating gas for the constructor
This commit is contained in:
commit
e7e04c542b
@ -544,7 +544,6 @@ class Contract
|
|||||||
if (count($arguments) > 0) {
|
if (count($arguments) > 0) {
|
||||||
$transaction = $arguments[0];
|
$transaction = $arguments[0];
|
||||||
}
|
}
|
||||||
$transaction['to'] = '';
|
|
||||||
$transaction['data'] = '0x' . $this->bytecode . Utils::stripZero($data);
|
$transaction['data'] = '0x' . $this->bytecode . Utils::stripZero($data);
|
||||||
} else {
|
} else {
|
||||||
$method = array_splice($arguments, 0, 1)[0];
|
$method = array_splice($arguments, 0, 1)[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user