0

I have deployed a contract with Parity on Kovan, which did not show up in the contracts menu after contract deployment was done. I had to watch it manually to be able to see it in the contracts menu.

When I check the contract on Etherscan, it tells me Contract Creation Out of Gas, but the contract was deployed anyway!?

Contract deployment with error My questions are:

  1. How could it be deployed if it was out of gas?

  2. If errors were encountered during contract creation, is it still fully functional?

  • What's the tx hash? It should not be deployed. – Raghav Sood Aug 7 '18 at 7:34
  • 0x0921f6cb3827622bed0d854e6514d69b4e3e4976b04d84033d842c9a6d39d4bc – saitam Aug 7 '18 at 7:38
  • 2
    It hasn't been deployed. The code is empty – Raghav Sood Aug 7 '18 at 7:48
  • This is confusing. Why it was mined then and did not gave me an error instead? – saitam Aug 7 '18 at 8:14
  • 1
    A tx that fails during execution will still be mined, and you still have to pay for the gas consumed, but any state changes done by it will be reverted – Raghav Sood Aug 7 '18 at 8:20
1

1. How could it be deployed if it was out of gas?

If you take a look at Section 7.1 of the yellow paper it states that "while the initialisation code is executing, the newly created address exists but with no intrinsic body code".

2. If errors were encountered during contract creation, is it still fully functional?

Shortly after it states that "For a normal STOP code, or if the code returned is otherwise empty, then the state is left with a zombie account, and any remaining balance will be locked into the account forever"

So no, your contract is not fully functional.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.