These are chat archives for Nethereum/Nethereum

1st
Dec 2018
hessam94
@hessam94
Dec 01 2018 03:32
@Dave-Whiffin thanks solved
This message was deleted
Juan Blanco
@juanfranblanco
Dec 01 2018 13:11
@hdany a transaction can be successful but the contract not deployed due to not enough gas, errors in the constructor
that is why you get the error
Daniel Hursan
@hdany
Dec 01 2018 16:40
Thanks for the response, @juanfranblanco . I've set a gas amount of 10 times x Estimated gas for the deploy. Deploy is actually successful, each time, even if it throws the exception. And the constructor looks like this.
// Constructor
    constructor() public {
        owner = msg.sender;
        balances[owner] = _totalSupply;
    }
so still not sure what causes this
Enigmatic
@EnigmaticUnreal_twitter
Dec 01 2018 16:48
Maybe you could also provide the deployment transaction on Etherscan, that might have a couple of clues for us? Hmmmmmmm.
Daniel Hursan
@hdany
Dec 01 2018 16:49
sure thing, one moment
Daniel Hursan
@hdany
Dec 01 2018 16:58
Transaction - https://kovan.etherscan.io/tx/0x452a6811d16d121966dca27184f37e2586a3668e154fab51b2da3df7bb9cf572
Gas Limit: 6139560 
Gas Used By Transaction:613956 (10%)
Enigmatic
@EnigmaticUnreal_twitter
Dec 01 2018 17:26
Interesting.... I am quite consistently getting errors attempting to deploy on Kovan, though the transaction is going through.
Errors are intermittent.
image.png
Let me do a couple more checks to see.

My test: https://kovan.etherscan.io/address/0x6458eafc3076f104a25492552ddf98f224813348

The last three deployments, two given "code not deployed successfully" error, while the third went through fine.

* on Kovan. Ropsten is so far so good.
Enigmatic
@EnigmaticUnreal_twitter
Dec 01 2018 17:45
** to clarify, all transactions did went through on the Kovan testnet. But for some reason throws an error on Nethereum.
image.png
Enigmatic
@EnigmaticUnreal_twitter
Dec 01 2018 18:00
image.png

At the point where the error is returned, code is still 0x - Would think since we have a receipt we should already be able to call eth_getCode (assuming transaction is fine in this case). All works perfect on Rinkeby and Ropsten.

@juanfranblanco - Like if I raise an issue and document my findings, and I could crack on it a bit more...? Or maybe there's something obvious I am missing... at 2AM.

Parking this paritytech/parity-ethereum#5538 and https://github.com/ethereum/web3.js/pull/1243/commits/e7d7d80c08dd9014b7860a80096577c2c956e50d here so I could also study this in the morning.

Daniel Hursan
@hdany
Dec 01 2018 21:20
@EnigmaticUnreal_twitter thanks for putting time into this and confirming my findings