Commit 3b8ddfc2 authored by yann300's avatar yann300

fix test rpc compatibility

parent 4d510b2d
...@@ -217,7 +217,7 @@ class TxListener { ...@@ -217,7 +217,7 @@ class TxListener {
var contracts = this._api.contracts() var contracts = this._api.contracts()
if (!contracts) return cb() if (!contracts) return cb()
var contractName var contractName
if (!tx.to) { if (!tx.to || tx.to === '0x0') { // testrpc returns 0x0 in that case
// contract creation / resolve using the creation bytes code // contract creation / resolve using the creation bytes code
// if web3: we have to call getTransactionReceipt to get the created address // if web3: we have to call getTransactionReceipt to get the created address
// if VM: created address already included // if VM: created address already included
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment