-
//SPDX-License-Identifier: UNLICENSED pragma solidity >=0.7.0 <0.9.0; contract EhterUnits1 { function ether_units() public pure returns(uint, uint, uint) { return (1 ether, 1 gwei, 1 wei); } }
배포
account: 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4
creation of EhterUnits1 pending... [vm]from: 0x5B3...eddC4to: EhterUnits1.(constructor)value: 0 weidata: 0x608...70033logs: 0hash: 0x2ff...d4564 status true Transaction mined and execution succeed transaction hash 0x2ffc08503bb0fd50bb9cf35e5c4c16730de98dd7d5331a552a926771e66d4564 from 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4 to EhterUnits1.(constructor) gas 118767 gas transaction cost 103275 gas execution cost 103275 gas input 0x608...70033 decoded input {} decoded output - logs [] val 0 wei
ether_units()함수 실행
account: 0xdD870fA1b7C4700F2BD7f44238821C26f7392148
CALL [call]from: 0xdD870fA1b7C4700F2BD7f44238821C26f7392148to: EhterUnits1.ether_units()data: 0x052...e9e32 from 0xdD870fA1b7C4700F2BD7f44238821C26f7392148 to EhterUnits1.ether_units() 0xd9145CCE52D386f254917e481eB44e9943F39138 execution cost 21607 gas (Cost only applies when called by a contract) input 0x052...e9e32 decoded input {} decoded output { "0": "uint256: 1000000000000000000", "1": "uint256: 1000000000", "2": "uint256: 1" } logs []
'Blockchain' 카테고리의 다른 글
Truffle 예제 'pet-shop' (0) 2023.01.03 Solidity send Ex1 (0) 2023.01.02 Nodejs + Vsc에서 remixd 사용 (0) 2023.01.02 Solidity balance Ex1 (0) 2023.01.02 Solidity 화폐 수신 - fallback, receive (0) 2023.01.02 Solidity 화폐 송신 - send, call, transfer (0) 2023.01.02 Solidity msg (msg.sender, msg.value) (0) 2023.01.02 Solidity 모디파이어(Modifier) - pure, view, payable (0) 2022.12.31