These are chat archives for Nethereum/Nethereum

Oct 2017
Juan Blanco
Oct 13 2017 04:28
you may not have supplied enough gas
or might be a problem on the constructor
Karsten Gebbert
Oct 13 2017 06:27
@juanfranblanco yes, it wasn't enough gas :)
I have another question :D

this is a function in the contract:

  function getUserFiles(address addr) public view returns (uint[] fids) {
    var count = users[addr].fileCount;
    var result = new uint[](count);
    var userFiles = files[addr];
    for (uint i = 0; i < count; i++) {
      result[i] = userFiles[i].id;
    return result;

and I have this function in .NET to correspond:

  let getFiles (contract: Contract) (user: User) =
    async {
      let idFunc = contract.GetFunction("getUserFiles")
      let! ids = idFunc.CallAsync<int[]>(user.Address)
      return Seq.toList ids

and I'm getting this error:

Unhandled Exception: System.AggregateException: One or more errors occurred. (No parameterless constructor defined for this object.) ---> System.MissingMethodException: No parameterless constructor defined for this object.
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Nethereum.ABI.Decoders.ArrayTypeDecoder.DecodeStaticElementType(Byte[] encoded, Type type)
   at Nethereum.ABI.Decoders.ArrayTypeDecoder.Decode(Byte[] encoded, Type type)
   at Nethereum.ABI.Decoders.DynamicArrayTypeDecoder.Decode(Byte[] encoded, Type type)
   at Nethereum.ABI.ABIType.Decode(Byte[] encoded, Type type)
   at Nethereum.ABI.FunctionEncoding.ParameterDecoder.DecodeOutput(String output, ParameterOutput[] outputParameters)
   at Nethereum.ABI.FunctionEncoding.FunctionCallDecoder.DecodeSimpleTypeOutput[T](Parameter outputParameter, String output)
   at Nethereum.Contracts.FunctionBase.DecodeSimpleTypeOutput[TReturn](String output)
   at Nethereum.Contracts.FunctionBase.<CallAsync>d__27`1.MoveNext()
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a](AsyncImplResult`1 res)
   at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronouslyInCurrentThread[a](CancellationToken token, FSharpAsync`1 computation)
   at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout)
   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken)
   at Main.main(String[] argv) in /home/k/src/projects/ethereum/purity/app/PurityServer/Main.fs:line 299
Lucas Cullen
Oct 13 2017 08:29
Has anyone seen vs code say "compile sucessfully" but no .abi or .bin are found?
Tried on mac and linux, both the same. For this repo
Oct 13 2017 09:20
I've seen it once, because I forgot to save the file
Juan Blanco
Oct 13 2017 09:27
Lucas Cullen
Oct 13 2017 09:28
cant be, i cloned on a new machine
thought it may be a linux thing
Oct 13 2017 09:36
then, Is it because of read/write permission. I guess
Oct 13 2017 10:58
Hi guys I m new here and I was trying to deploy the simple contract following your videos on Youtube @juanfranblanco . I just ran into a exception while deploying the contract. It says "Intrinsic gas is low".
Juan Blanco
Oct 13 2017 10:59
you need to increase your gas
also check this workbook it might help you
Oct 13 2017 11:07
@juanfranblanco this is not the contract I ve been working with. Its the multiply contract .
var transactionHash = await web3.Eth.DeployContract.SendRequestAsync(abi, bytecode, senderAddress, multiplier);
The exception is not this line.
You mentioned Nethereum/Nethereum#163 to the latest 2.0.0 rc6
Juan Blanco
Oct 13 2017 11:12
well you will need now 2.0.1
what happens is that you need to add some gas
as opposed to the default one
if you look at the deployment in the workbook sample
you can use that amount of gas
Oct 13 2017 11:13
Ok I ll give it a try.
that might help you
Nikolay Postoyko
Oct 13 2017 11:48
might be a stupid question, maybe I'm just missing something, but anyway. how can I get the list of inbound transactions for the specific account?
Lucas Cullen
Oct 13 2017 12:14
@ChinhPLQ thought of that too
Luciano Bertenasco
Oct 13 2017 15:04
Hi! We created a small & simple tutorial integrating Nethereum & Unity3d.
Wanted to sahre it here since maybe someone will find it useful :)
BTW Thanks a lot @juanfranblanco for the library!
Oct 13 2017 17:25

E:\testing>bloc start
bloc is listening on

api is pointed to http://localhost with profile ethereum

GET //users/testuser/e3d0c85e9e0c32d3533c5c7316fc86be5fef5ef1/contract.html 404 7.252 ms - 209

GET //users/testuser/e3d0c85e9e0c32d3533c5c7316fc86be5fef5ef1/contract.html 404 2.970 ms - 209

GET /users/testuser/e3d0c85e9e0c32d3533c5c7316fc86be5fef5ef1/contract.html 404 1.436 ms - 208

GET / 304 4.627 ms - -

GET /users/ 200 20.525 ms - 20

GET /users/testuser 200 5.331 ms - 44

contract as body is: undefined

constructor arguments: undefined

data is: e3d0c85e9e0c32d3533c5c7316fc86be5fef5ef1

About to upload contract

compile failed with error message: TypeError: Cannot convert undefined or null to object

caught a single contract
POST /users/testuser/e3d0c85e9e0c32d3533c5c7316fc86be5fef5ef1/contract 200 150.512 ms - 24

extension was matched: html

unable to deploy contract
error in vs Contract SimpleDataFeed created successfully at address error uploading contract
Contract can be accessed here: http://localhost:8000/contracts/SimpleDataFeed/error uploading contract.html (default password: testing)
can any body help me to reslove this
i am new to blockchain