These are chat archives for Nethereum/Nethereum

4th
Jul 2017
Devedse
@devedse
Jul 04 2017 14:49
Hi all, does anyone know what the HexBigInteger() does with the name value in the DeployContract class?
public Task<string> SendRequestAsync(string abi, string contractByteCode, string from, HexBigInteger gas, HexBigInteger gasPrice,
HexBigInteger value,
params object[] values)
That one
And furthermore, can someone explain me why I can call deploycontract without providing any gas price on the default test chain from the Nethereum repo and the miner will still accept it?
Juan Blanco
@juanfranblanco
Jul 04 2017 14:53
Default values for the gas price
value is the amount ether that you send
as per the rpc specification
Devedse
@devedse
Jul 04 2017 14:55
So you can deploy a contract and directly send money to it in one transaction?
Juan Blanco
@juanfranblanco
Jul 04 2017 14:55
yes
Devedse
@devedse
Jul 04 2017 14:55
(Every time I try to do that it says something like Code deployment failed)
Juan Blanco
@juanfranblanco
Jul 04 2017 14:55
well that might be because you are not using enough gas
Devedse
@devedse
Jul 04 2017 14:55
But that's something for later :)
Devedse
@devedse
Jul 04 2017 14:55
(I tried to set the gas limit at like 500000000)
Juan Blanco
@juanfranblanco
Jul 04 2017 14:56
you may not have enough Ether
Devedse
@devedse
Jul 04 2017 14:56
It's quite a simple contract
Ran from the genesis block account
Juan Blanco
@juanfranblanco
Jul 04 2017 14:57
the one from the samples
Devedse
@devedse
Jul 04 2017 14:57
yep :)
Juan Blanco
@juanfranblanco
Jul 04 2017 14:57
yes that has lots of ether :D
did you mark the constructor as payeable?
Devedse
@devedse
Jul 04 2017 15:00
Ahaaa :)
Juan Blanco
@juanfranblanco
Jul 04 2017 15:00
check the sample ^^
Devedse
@devedse
Jul 04 2017 15:05
Will do :)
So back to my other question, my miner on Geth is configured with: --gasprice 20000000000. I would expect that all transactions I do with a gassprice of less than that number would be ignored. But they are not.
Am I missing something else :)?
E.g. this deployment thingy:
web3.Eth.DeployContract.SendRequestAsync(nicoisContract.Abi, nicoisContract.Bin, senderAddress, new HexBigInteger("50000000"), new HexBigInteger(1), new HexBigInteger(1))
I pass a value gas price of 1 and a value of 1