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:
Peter Lai 2018-12-12 00:05:51 +09:00 committed by GitHub
commit e7e04c542b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,7 +544,6 @@ class Contract
if (count($arguments) > 0) {
$transaction = $arguments[0];
}
$transaction['to'] = '';
$transaction['data'] = '0x' . $this->bytecode . Utils::stripZero($data);
} else {
$method = array_splice($arguments, 0, 1)[0];