9

I'm testing a contract on testnet using Mist.

When I deploy it, it says "No data is deployed on the contract address!".

And then it doesn't appear on the contracts section.

What does it mean?

J-B
  • 8,941
  • 16
  • 46
  • 77
Fernando Tiberti
  • 2,299
  • 1
  • 15
  • 28

3 Answers3

4

It can mean 'not enough gas'.

When you submit a contract using Mist/Ethereum Wallet you should always check that the 'Estimated fee consumption' is greater or equal to the 'Provide maximum fee' field. If it is not, then the gas in the 'Provide maximum fee' field can be increased simply by clicking on the blue link and then amending the value.

Jim Sime
  • 127
  • 1
  • 1
  • 1
    This helped me solve mine! But it's actually that your Estimated Fee Consumption should be less than the Provide Maximum Fee field. You have written "greater than". Thanks though, Jim! – rizzes Apr 25 '17 at 22:01
  • @rizzes my Estimated fee consumption IS less, but still I get the above error – dark_ruby Jun 24 '17 at 13:41
  • Ok turns out, estimated fee is not always accurate, and for contract to be succesfully published (especially on TestNet) your Maximum fee should be significantly greater than estimated – dark_ruby Jun 24 '17 at 13:45
4

This happens if the transaction with your contract was mined, but them the wallet couldn't find data on this address using web3.eth.getCode(address). This happens if you don't provide enough gas for storing the contract. E.g. it was executed but not stored. This is an encase and shouldn't happen normally.

Fabian Vogelsteller
  • 1,520
  • 11
  • 12
  • Same happened to me too. It's surprising. I provided 1eth for deploying ethereum-based Token, still no data is deployed on contract. I think that 4,739,336 gas is more than sufficient to deploy a simple token. – Prashant Prabhakar Singh Apr 21 '17 at 09:23
  • OMG Thank you I clicked on the blue link and made both values the same. Cost me .24 Ether to create my custom token. Now I have to find out what my custom tokens watch address is. So I can share with others! – Wingless May 03 '17 at 13:46
1

This happened to me once and it was because the transaction contained a simple error: I sent Ether to the contract when I deployed it but the contract's constructor wasn't payable.

Nic Szerman
  • 269
  • 2
  • 11