공심정원

검색

검색 아이콘Icon to open search

외롭다. 틀린 내용 토달면 땡큐다. 퍼가기 사양. 링크 환영 💋

Solidity Basics

Last updated 2022-11-19

# Data type

# Read only 동작

# view function

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
pragma solidity ^0.5.0;

contract Test {
   function getResult() public view returns(uint product, uint sum){
      uint a = 1; // local variable
      uint b = 2;
      product = a * b;
      sum = a + b; 
   }
}

# pure function

# Data location

Remix IDE

Special Variables and Functions

# payable keyword

# receive() and fallback()

Sending Ether

# Contract vs. Library

# call-vs-delegateCall

# 참고자료


Solidity