Remix
1. Layout

2. 모듈 소개
File Explorer

Plugin Manager

Code Editor

Terminal

3. Solidity Compiler

4. DEPLOY & RUN TRANSACTIONS



Deploy



Last updated
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.6;
contract Mortal {
/* 주소 타입의 소유자(owner) 변수 정의 */
address payable owner;
/* 이 함수는 초기화 시점에 실행되어 컨트랙트 소유자를 설정합니다 */
constructor () public { owner = msg.sender; }
/* 컨트랙트에서 자금을 회수하는 함수 */
function kill() public payable { if (msg.sender == owner) selfdestruct(owner); }
}
contract MEVerseGreeter is Mortal {
/* 문자열 타입의 변수 greeting 정의 */
string greeting;
/* 이 함수는 컨트랙트가 실행될 때 작동합니다 */
constructor (string memory _greeting) public {
greeting = _greeting;
}
/* 주(Main) 함수 */
function greet() public view returns (string memory) {
return greeting;
}
}[block:28755068 txIndex:0]from: 0x193...449E7to: value: 0 weidata: 60806...00000logs: 0hash: 0x96a...d0065
status true Transaction mined and execution succeed
transaction hash 0xab577d01c5583bea3971eca8ae132713c5ad23157a318183fbfb45328066f4b9
from 0x19368fCd2F0EE8d2C788b754F6504FD49de449E7
gas 500000000 gas
transaction cost 223369 gas
input 60806...00000
decoded output -
val 0 wei
MetaMask Tx Signature: User denied transaction signature.. Execution failed at 0