mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-22 14:23:37 +02:00
update chinese version content
This commit is contained in:
@@ -5,6 +5,7 @@ contributors:
|
||||
- ["Nemil Dalal", "https://www.nemil.com"]
|
||||
- ["Joseph Chow", ""]
|
||||
- ["Bhoomtawath Plinsut", "https://github.com/varshard"]
|
||||
- ["Shooter", "https://github.com/liushooter"]
|
||||
---
|
||||
|
||||
Solidity lets you program on [Ethereum](https://www.ethereum.org/), a
|
||||
@@ -237,7 +238,7 @@ uint x[][5]; // arr with 5 dynamic array elements (opp order of most languages)
|
||||
// Dictionaries (any type to any other type)
|
||||
mapping (string => uint) public balances;
|
||||
balances["charles"] = 1;
|
||||
// balances["ada"] is 0, all non-set key values return zeroes
|
||||
// balances["ada"] result is 0, all non-set key values return zeroes
|
||||
// 'public' allows following from another contract
|
||||
contractName.balances("charles"); // returns 1
|
||||
// 'public' created a getter (but not setter) like the following:
|
||||
|
Reference in New Issue
Block a user