Ethereum, tokens & smart contracts.
Notes on getting started : Part 11. Some intermediate considerations.
Previous notes in case you are just joining us:Part 1. Setting up.
Part 2. Web3.js/node.
Part 3. Solidity.
Part 4. Smart Contracts.
Part 5. Smarter Contracts.
Part 6. Tokens & Inheritance.
Part 7. ERC20 Token Standard.
Part 8. Crowdfunding and ICOs.
Part 9. Dapps & MetaMask.
Part 10. Remix, Truffle, TestRPC.
So now that we have gotten to the metaphorical peak on understanding and getting started developing for the Ethereum ecosystem, I would like to finish wth a few intermediate subjects in this notes and some advanced ones in the next one to set you in the right path in case you want an opinionated path on where to go next, there’s also some high level and faq type considerations, let’s start.
Working with solidity function parameters in web3
For more complex contracts, sending and receiving parameters/arguments to your contract methods can be hard to grasp at first, let’s try with a set/get array contract:
pragma solidity ^0.4.0;contract SetGetArray { uint[] someNumbers; function getArray() public constant returns (uint[]) {…