프로그래밍/Solidity

    Solidity - CryptoZombies - Lesson #2

    Solidity - CryptoZombies - Lesson #2

    Ethereum blockain is composed of accounts(think of it as bank accounts) Accounts have a balance of Ether(통화) Ether을 다른 account들과 주고 받을 수 있음. 각 account는 고유의 adress를 지님 하나의 Address는 하나의 고유한 user에 의해 소유(종속)가됨. 유저가 zombie를 생성하면, zombie의 소유권은 create함수를 호출한 address에 감. mapping 데이터 저장과 검색을 위한 key-value store (address=>uint) // 주소-잔고 (uint=>string) / 아이디-이름 (형식) mapping (key type=>value type) public map..