Loading Learn Solidity basics/contracts/MyUnits.sol 0 → 100644 +19 −0 Original line number Diff line number Diff line // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract MyUnits { // 1 wei == 1; // 1 gwei == 1e9; // 1 ether == 1e18; uint256 costOfNFT = 0.05 ether; // 1 == 1 seconds // 1 minutes == 60 seconds // 1 hours == 60 minutes // 1 days == 24 hours // 1 weeks == 7 days uint256 levelUpRate = 1 hours; } No newline at end of file Loading
Learn Solidity basics/contracts/MyUnits.sol 0 → 100644 +19 −0 Original line number Diff line number Diff line // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract MyUnits { // 1 wei == 1; // 1 gwei == 1e9; // 1 ether == 1e18; uint256 costOfNFT = 0.05 ether; // 1 == 1 seconds // 1 minutes == 60 seconds // 1 hours == 60 minutes // 1 days == 24 hours // 1 weeks == 7 days uint256 levelUpRate = 1 hours; } No newline at end of file