Solidity - Ether and Wei
Transactions are paid with ether. 거래는 ETH로 지불된다. Similar to how one dollar is equal to 100 cent, one ether is equal to 1018 wei. 1달러가 100센트인 것과 마찬가지로 1ETH는 10^18 wei이다. (10의 18승) // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; contract EtherUnits { uint public oneWei = 1 wei; // 1 wei is equal to 1 bool public isOneWei = 1 wei == 1; uint public oneEther = 1 ether; // 1 ether is equal to..
Programming Language/Solidity
2022. 12. 22. 22:06