These are chat archives for Nethereum/Nethereum

6th
Mar 2017
rickzanux
@rickzanux
Mar 06 2017 18:41
Hi Juan
Everything fine? i have a (small?) problem. Im using your devchain to execute methid in a contract. what i find is that i cam deply the contract (using the remix window of mist) but when i execute the mehtods nothing happen, I wrote the web3 javascript ocde to execute the method, trnasction is minex, i have the receipr back but nothing happened. Using remix, i go to Javascript VM and magically all the methods are executed perfectly wit hthe right results...... some idea?
Juan Blanco
@juanfranblanco
Mar 06 2017 19:16
hi
it may have not deployed correctly
when using the chain, did check eth.getCode using the txn from remix?
rickzanux
@rickzanux
Mar 06 2017 19:18
i will try. no i didnt check.
but i deply with remix and its the same thing. I deployed a basic contract and its happening in the same way
I deployed with remix this contract

pragma solidity ^0.4.0;

contract SimpleStorage {
uint storedData;

function set(uint x) {
    storedData = x;
}

function get() constant returns (uint ret) {
    return storedData;
}

}

and happen exactly the same. transaction are accepted and mined.
ut nothing happened
Juan Blanco
@juanfranblanco
Mar 06 2017 19:20
ill check with that
rickzanux
@rickzanux
Mar 06 2017 19:21
seems that blockchain dont execute the transactions
i sued your genesis conf for the blockchain
just chaingin remix pointing to javascript Vmand makingthe same things, everything is ok
this is the genesis: {
"nonce": "0x0000000000000042",
"difficulty": "0x200",
"alloc": {
"12890d2cce102216644c59dae5baed380d84830c": {
"balance": "10000000000000000000000"
}
},
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x",
"gasLimit": "0x4c4b40"
}
Juan Blanco
@juanfranblanco
Mar 06 2017 19:42
yes working
no problem with your contract
  1. Is it connecting to geth? Are you using http:// remix.ethereum.org ? as opposed to https?
  1. Have you unlocked your account in geth? personal.unlockAccount(eth.accounts[0], "password", 60000);
  1. Are you mining? miner.start()
(that is points 1, 2, 3 they have been changed automatically )
Juan Blanco
@juanfranblanco
Mar 06 2017 20:03
actually after testing the deployment the contract has not deployded correctly i have a 0x return
so the transaction to store was not succeful and used all the gas
rickzanux
@rickzanux
Mar 06 2017 20:15
i unlock the account (it is in the javascript program) and miner is started (i deply contract)
it is connected to geth because transaction is executed. i put verbosity = 4 so i see all the messages
Juan Blanco
@juanfranblanco
Mar 06 2017 20:16
i dont think it is accepting the gas changes
on the remix browser
well the txn has a different value of what is set on the page
rickzanux
@rickzanux
Mar 06 2017 20:17
so contract is not deplyed? but so, How ca nthe transaction be executed (badly) on the blockchain?
Juan Blanco
@juanfranblanco
Mar 06 2017 20:17
the transaction will execute if you pass enough gas for that
rickzanux
@rickzanux
Mar 06 2017 20:18
also if he contract is not there?
Juan Blanco
@juanfranblanco
Mar 06 2017 20:18
but if there is not enough for the contract
or is an error on the constructor
it won't deploy
so you will get a "0x" value for the contract
rickzanux
@rickzanux
Mar 06 2017 20:19
ok. so the problem it is in deplopying the contract for remix. how can chak it? lookgin to see if there is the binary code at the address?
Juan Blanco
@juanfranblanco
Mar 06 2017 20:19
getcode
rickzanux
@rickzanux
Mar 06 2017 20:19
ok
I dont want to deply the contract any time that i execute the web3 javascrpit code
and also the deploy with mist is a mess.
lost of problem with interface
Juan Blanco
@juanfranblanco
Mar 06 2017 20:20
truffle? using Nethereum?
rickzanux
@rickzanux
Mar 06 2017 20:20
using node.js
trufflwe doenst work on window
Juan Blanco
@juanfranblanco
Mar 06 2017 20:21
it does, check the windows instructions
rickzanux
@rickzanux
Mar 06 2017 20:21
ok. yes. mixing up with embrak
sorry
so i can do the deply with node.js
wrote a program just for that adn after use the contract with another one
Juan Blanco
@juanfranblanco
Mar 06 2017 20:21
also check the truffle-contract
rickzanux
@rickzanux
Mar 06 2017 20:22
ok
Juan Blanco
@juanfranblanco
Mar 06 2017 20:22
but you will need to format a js file with the correct data
rickzanux
@rickzanux
Mar 06 2017 20:23
and please tell to someone tha UI of mist-contract its a mess.
i can compile it with remix and use the output to deply with node.js
Juan Blanco
@juanfranblanco
Mar 06 2017 20:23
im working on that changing the vs-code plugin to output compatible files for truffle
rickzanux
@rickzanux
Mar 06 2017 20:23
ok. great
Juan Blanco
@juanfranblanco
Mar 06 2017 20:23
but not by tomorrow :)
rickzanux
@rickzanux
Mar 06 2017 20:24
no problem ;). im working for a supply chain contract to earn a job a cto in a blockchain startup
in london
Juan Blanco
@juanfranblanco
Mar 06 2017 20:24
nice !
rickzanux
@rickzanux
Mar 06 2017 20:24
i worked all the nights last week but it was impossible to test it
little depressing...
Juan Blanco
@juanfranblanco
Mar 06 2017 20:25
testrpc?
i created a simple file for windows (portable)
ethereumjs/testrpc#240
rickzanux
@rickzanux
Mar 06 2017 20:29
i have to create a wallet for this contract and publishi it on a public web
so i can also use it to show it as "my portfolio"
anyway thanks Juan. I owe you a lot of explanation an help. Do u ever go to Lodon? i would like to offer you a dinner or a lunch
Juan Blanco
@juanfranblanco
Mar 06 2017 20:34
it is my pleasure, pretty stuck at home at the moment as I broke my leg :) but Ill ping you if i am down.
rickzanux
@rickzanux
Mar 06 2017 20:34
uff! whats happened?
Juan Blanco
@juanfranblanco
Mar 06 2017 20:34
ah I fell
rickzanux
@rickzanux
Mar 06 2017 20:35
uff! what a pity
Juan Blanco
@juanfranblanco
Mar 06 2017 20:36
yes a bit of a pain :)
rickzanux
@rickzanux
Mar 06 2017 20:36
ok. i would be two weeks in UK and two weeksdin barcelona. in UK between london and harrogate. so when you can move, tell me
Juan Blanco
@juanfranblanco
Mar 06 2017 20:37
yes of course, it will be great to meet even if just for a coffee
rickzanux
@rickzanux
Mar 06 2017 20:37
or m ore. i owe you a lot
so thanks again. tomorrow I will try again. thsi week im in barcelona