cyrusadkisson / solidity-baby-steps Goto Github PK
View Code? Open in Web Editor NEWContract examples for Ethereum
Contract examples for Ethereum
To simplify each example, while sill allowing to copy paste we can abstract the kill() function into a Mortal contract.
Some .sol files have no compiler version specified
hello guys, if I stored some data in struct array, how can I read and return this struct array data. hope your answer.
https://github.com/fivedogit/solidity-baby-steps/blob/master/contracts/30_endowment_retriever.sol#L6
since the contractor is using msg.value
it has to be payable.
To simplify each example, while sill allowing to copy paste we can abstract the kill() function into a Mortal contract.
Currently contracts are either missing a compiler version or are referencing different ones.
We can harmonise all the contracts to reference the same version (^4.25.0 ?).
For educational purposes it may be useful to keep examples of previous implementations. In order to facilitate maintenance we can even create a corresponding tag or branch each time we update the version.
but i can't find location of "mortal".
please help me, thanks.
change
The constant
function modifier, as used in e.g. contracts/05_greeter.sol, is deprecated and should be replaced with view
Like MIT/BSD
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.