Merge pull request #60 from pash7ka/dev-patch-new-contract
Remove `to` parameter when publishing contract transaction
This commit is contained in:
commit
00817ee6b9
@ -397,7 +397,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);
|
||||||
|
|
||||||
$this->eth->sendTransaction($transaction, function ($err, $transaction) use ($callback){
|
$this->eth->sendTransaction($transaction, function ($err, $transaction) use ($callback){
|
||||||
|
Loading…
Reference in New Issue
Block a user