These are chat archives for Nethereum/Nethereum

2nd
Oct 2018
Tom Ryan
@a7coretryan
Oct 02 2018 01:38
image.png
I have created a Parity PoA Consortium out on Azure and am trying to deploy a simple helloworld contract. I get the error shown above -- any ideas what I may be doing incorrectly?
Psilon
@Pzixel
Oct 02 2018 08:50
You send transaction without gas
you have to provide some gas
Juan Blanco
@juanfranblanco
Oct 02 2018 08:51
@Genzafel_twitter you can check these workbook / s and this sample
Agente del Caos
@Genzafel_twitter
Oct 02 2018 15:23
@juanfranblanco thank you so much
Tom Ryan
@a7coretryan
Oct 02 2018 15:45
@Pzixel -- it's Azure Parity PoA - I understand it doesn't require gas.
Psilon
@Pzixel
Oct 02 2018 15:55
I don't see how ethereum tx may not consume gas
it's defined in EVM spec
without gas you cannot get tx receipt
without rx receipt there is no tx
it's as simple as this
Juan Blanco
@juanfranblanco
Oct 02 2018 15:57
@a7coretryan yes that is correct, you need gas for your transactions. This prevents in a private environment simple error handling for infinite loops as an example.
Tom Ryan
@a7coretryan
Oct 02 2018 16:10

@juanfranblanco I must have misunderstood something -- in the private Azure Parity PoA consortium I thought no gas is necessary. This from Cody Born (Azure Ethereum PoA)…

"The PoA network does not require Ether to send transactions, so you can set the gas-price to zero. We've found that prefunding accounts was a hindrance on consortium networks. In a consortium network we expose more suitable methods for Sybil-attack prevention (network/consensus/contract ACLs)."

Psilon
@Pzixel
Oct 02 2018 16:15
Gas and ether are different things
you can pass no ether, but you have to pay for tx
Considering that message you could send txs from accounts that have nothing on their balance
however, you still need set gas for tx
Juan Blanco
@juanfranblanco
Oct 02 2018 16:16
"you can set the gas-price to zero."
Psilon
@Pzixel
Oct 02 2018 16:17
AFAI understand you just pass some gas which cost you nothing, but you still have to provide it
Tom Ryan
@a7coretryan
Oct 02 2018 16:19
Thanks guys. So if the account where I'm sending the transaction from has balance of 0 that should be fine?
Psilon
@Pzixel
Oct 02 2018 16:22
I infer it from what you posted
Tom Ryan
@a7coretryan
Oct 02 2018 16:30
image.png
Reattempted the transaction for an account with 0 balance -- specifying gas and I get this error:
I'm assuming I have something misconfigured?
Tom Ryan
@a7coretryan
Oct 02 2018 18:27
I appreciate the bit of help. Once I specified the proper amount of gas in the web3.Eth.DeployContract.SendRequestAndWaitForReceiptAsync method it deployed successfully.