Paolo Guerra
  • Member for 4 years, 6 months
  • Last seen more than a month ago
  • Talamona, Talamona, Province of Sondrio, Italy
Writing contracts without fully syncing blockchain
Accepted answer
5 votes

If you want to start coding smart contract this is a quite smooth environment to set up: Use Remix online IDE for coding and link it with your local node Download testRPC on your PC and run a local ...

View answer
Why do we need to specify constant in the return value
1 votes

Adding constant you're telling to the compiler that this function is going to perform only read actions (calls instead of transactions), and calls have no gas costs. So if you have to set up a getter ...

View answer
How to return balance of smart contract for particular address in solidity?
Accepted answer
1 votes

In your function definition, you're missing the returns param type: function get_balance(address _add) returns(<balance_var_type>) { balance = balanceOf[_add]; return balance; } Try ...

View answer
Is there any other platform to check contract working?
1 votes

You can download testRCP (repo https://github.com/ethereumjs/testrpc) and run a local node on your PC, then set up Remix to run on your local node. Setting remix: On 'Contract' - 'Environment' ...

View answer
Test custom ERC20 token with MEW
Accepted answer
1 votes

Ok, sorry for the question, it's quite simple. You just need to change the decimals of your token. See this discussion for more details: Float not allowed in solidity vs decimal places asked for token ...

View answer
I need help with a crowdfunding contract
Accepted answer
0 votes

Is it possible for address A and address B to map to the same index within the mapping? No, it's not possible because with mapping you define a unique link between the address and the amount ...

View answer
How do I know if this fake token is ERC20?
Accepted answer
0 votes

A token can be recognized by wallets (such as Remix, Mew) if it follows these directives: https://theethereum.wiki/w/index.php/ERC20_Token_Standard I had the same problem with MEW that instead of ...

View answer
Error while creating the contract with ethereum in the initial tx
0 votes

Thank for the answer; I have another question for you: why the fallback function is called even though I send 0 ether at the start?

View answer
Solidity opcode error when sending coin to an address
0 votes

Ok, I fixed it by replacing msg.sender with the owner address var declared in the constructor. Does anyone know why now it works? contract HelloWorld { mapping (address => uint) balances; ...

View answer