Merge pull request #60 from pash7ka/dev-patch-new-contract

Remove `to` parameter when publishing contract transaction
This commit is contained in:
Kuan-Cheng,Lai 2018-04-08 22:41:32 +08:00 committed by GitHub
commit 00817ee6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -397,7 +397,6 @@ class Contract
if (count($arguments) > 0) {
$transaction = $arguments[0];
}
$transaction['to'] = '';
$transaction['data'] = '0x' . $this->bytecode . Utils::stripZero($data);
$this->eth->sendTransaction($transaction, function ($err, $transaction) use ($callback){