Solidity smart contract language

uint[] result = new uint[](3);
 
uint[] memory result = new uint[](ownerZombieCount[_owner]);
 
 
 
 
[Types of] [__ can only be invoked]
private  Internal Agreement
internal  Internal contract / inheritance contract
external  External contract
public  any
 
State qualifier
 
view not write data,
pure not read and write
Both contracts call from the outside does not cost gas, internal calls will cost gas
 
Custom modifiers
function test (n parameter) External View onlyOwner anotherModifier { / * ... * / }

 Payment may be payable, acceptable ether ether

 

 
Official website document  https://solidity.readthedocs.io/zh/latest/

Guess you like

Origin www.cnblogs.com/yucloud/p/11164707.html