Contract creation succeeded... but not really. This seems bad.

I just created a new contract with this from the Solidity realtime compiler:

var msgexaminerContract = web3.eth.contract([{"constant":true,"inputs":[],"name":"getMsgDataBefore","outputs":[{"name":"","type":"bytes"}],"type":"function"},{"constant":true,"inputs":[],"name":"getContractCreationGas","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getContractCreationData","outputs":[{"name":"","type":"bytes"}],"type":"function"},{"constant":false,"inputs":[],"name":"kill","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"getContractCreationValue","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getMsgGasAfter","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getContractCreationTxOrigin","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"getMsgGas","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getMsgValue","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getMsgValueAfter","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[],"name":"sendOneEtherToMiner","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"getMsgValueBefore","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getMsgDataAfter","outputs":[{"name":"","type":"bytes"}],"type":"function"},{"constant":false,"inputs":[],"name":"sendOneEtherToHome","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"getMsgData","outputs":[{"name":"","type":"bytes"}],"type":"function"},{"constant":true,"inputs":[],"name":"getContractCreationTxGasprice","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"getMsgGasBefore","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"inputs":[],"type":"constructor"}]);
var msgexaminer = msgexaminerContract.new(
{
from: web3.eth.accounts[0],
data: '60606040525b33600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555073910561dc5921131ee5de1e9748976a4b9c8c1e80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055506000366002600050919082805482825590600052602060002090601f016020900481019282156100bc579182015b828111156100bb57823582600050559160200191906001019061009d565b5b5090506100e791906100c9565b808211156100e357600081815060009055506001016100c9565b5090565b50505a600360005081905550346004600050819055503a60056000508190555032600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b610ae9806101426000396000f300606060405236156100ed576000357c01000000000000000000000000000000000000000000000000000000009004806311c98718146100ef5780633add5a99146101685780633bd5c2091461018957806341c0e1b5146102025780636c6f1d93146102235780636eced02914610244578063750dd523146102655780639d5c60611461029c578063a17042cc146102bd578063a591d4a6146102de578063ae188884146102ff578063b72916ef14610320578063baea043114610341578063bf606d14146103ba578063c8e7ca2e146103db578063dd5a7f4014610454578063efdcb50614610475576100ed565b005b6100fa60045061090a565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f16801561015a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610173600450610ac5565b6040518082815260200191505060405180910390f35b610194600450610a47565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156101f45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61020d6004506104f8565b6040518082815260200191505060405180910390f35b61022e600450610ad7565b6040518082815260200191505060405180910390f35b61024f6004506104b5565b6040518082815260200191505060405180910390f35b610270600450610a18565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102a7600450610496565b6040518082815260200191505060405180910390f35b6102c86004506104c7565b6040518082815260200191505060405180910390f35b6102e96004506104e6565b6040518082815260200191505060405180910390f35b61030a6004506105a4565b6040518082815260200191505060405180910390f35b61032b6004506104d4565b6040518082815260200191505060405180910390f35b61034c600450610988565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156103ac5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103c560045061072e565b6040518082815260200191505060405180910390f35b6103e66004506108b8565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156104465780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61045f600450610a06565b6040518082815260200191505060405180910390f35b6104806004506104a3565b6040518082815260200191505060405180910390f35b60005a90506104a0565b90565b600060096000505490506104b2565b90565b6000600a6000505490506104c4565b90565b60003490506104d1565b90565b6000600b6000505490506104e3565b90565b6000600c6000505490506104f5565b90565b6000600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561059757600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16ff600190506105a1566105a0565b600090506105a1565b5b90565b600060005a6009600050819055506000366007600050919082805482825590600052602060002090601f016020900481019282156105ff579182015b828111156105fe5782358260005055916020019190600101906105e0565b5b50905061062a919061060c565b80821115610626576000818150600090555060010161060c565b5090565b505034600b60005081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166000670de0b6b3a7640000604051809050600060405180830381858888f1935050505090505a600a600050819055506000366008600050919082805482825590600052602060002090601f016020900481019282156106eb579182015b828111156106ea5782358260005055916020019190600101906106cc565b5b50905061071691906106f8565b8082111561071257600081815060009055506001016106f8565b5090565b505034600c6000508190555080915061072a565b5090565b600060005a6009600050819055506000366007600050919082805482825590600052602060002090601f01602090048101928215610789579182015b8281111561078857823582600050559160200191906001019061076a565b5b5090506107b49190610796565b808211156107b05760008181506000905550600101610796565b5090565b505034600b60005081905550600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166000670de0b6b3a7640000604051809050600060405180830381858888f1935050505090505a600a600050819055506000366008600050919082805482825590600052602060002090601f01602090048101928215610875579182015b82811115610874578235826000505591602001919060010190610856565b5b5090506108a09190610882565b8082111561089c5760008181506000905550600101610882565b5090565b505034600c600050819055508091506108b4565b5090565b60206040519081016040528060008152602001506000368080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509050610907565b90565b60206040519081016040528060008152602001506007600050805480601f0160208091040260200160405190810160405280929190818152602001828054801561097957820191906000526020600020905b81548152906001019060200180831161095c57829003601f168201915b50505050509050610985565b90565b60206040519081016040528060008152602001506008600050805480601f016020809104026020016040519081016040528092919081815260200182805480156109f757820191906000526020600020905b8154815290600101906020018083116109da57829003601f168201915b50505050509050610a03565b90565b60006005600050549050610a15565b90565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050610a44565b90565b60206040519081016040528060008152602001506002600050805480601f01602080910402602001604051908101604052809291908181526020018280548015610ab657820191906000526020600020905b815481529060010190602001808311610a9957829003601f168201915b50505050509050610ac2565b90565b60006003600050549050610ad4565b90565b60006004600050549050610ae6565b9056',
gas: 1000000
}, function(e, contract){
if (typeof contract.address != 'undefined') {
console.log(e, contract);
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
}})

After pasting all of that into geth, I got the following after a few seconds:

Contract mined! address: 0x22c6828879120ed5e456b2ed07cdac5df8c3fd38 transactionHash: 0xe904c128241630e59dba957a465039f580fc5a4b38519aade838e7a58b0658f1

But here's the problem. The transaction exists....

https://etherchain.org/tx/0xe904c128241630e59dba957a465039f580fc5a4b38519aade838e7a58b0658f1

...but the contract it supposedly created does not...

https://etherchain.org/account/0x22c6828879120ed5e456b2ed07cdac5df8c3fd38

This seems suboptimal at best and broken at worst. Any ideas/thoughts about why this is happening?
Sign In or Register to comment.