Ethereum 썸네일형 리스트형 솔리디티 문법 2 Solidity v0.8.14 기준 문법 Solidity 컨트랙트 상속 // SPDX-License-Identifier:GPL-30 // Constructor가 없는 컨트랙트 pragma solidity >= 0.7.0 < 0.9.0; contract Father{ string public familyName = "Kim"; string public givenName = "Jung"; uint256 public money = 100; function getFamilyName() view public returns(string memory){ return familyName; } function getGivenName() view public returns(string memory){ return give.. 더보기 솔리디티 Contract 구조 solidity v0.8.14 기준 문법 State Variables State variables are variables whose values are permanently stored in contract storage. // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.4.0 =0.7.1 =0.4.22 =0.4.21 uint) balances; function transfer(address to, uint amount) public { uint balance = balances[msg.sender]; if (balance < amount) revert NotEnoughFunds(amount, balance); balances[msg.sender] -.. 더보기 이더리움 개발 문서 The Ethereum Virtual Machine (EVM) is the runtime environment for smart contracts in Ethereum. All smart contracts and state changes on the Ethereum blockchain are executed by transactions. The EVM handles all of the transaction processing on the Ethereum network. Smart contracts are the executable programs that run on the Ethereum blockchain. Smart contracts are written using specific programmi.. 더보기 이전 1 다음