Skip to main content
Format code
Source Link
Ismael
  • 30.3k
  • 23
  • 54
  • 97

pragma solidity ^0.8.9;

contract Time{

uint public blockTime;

pragma solidity ^0.8.9;

contract Time{

   uint public blockTime;

    function getCurrentTime() public {
        blockTime = block.timestamp;
    }

}

}

pragma solidity ^0.8.9;

contract Time{

uint public blockTime;

function getCurrentTime() public {
    blockTime = block.timestamp;
}

}

pragma solidity ^0.8.9;

contract Time{

   uint public blockTime;

    function getCurrentTime() public {
        blockTime = block.timestamp;
    }

}
Source Link

pragma solidity ^0.8.9;

contract Time{

uint public blockTime;

function getCurrentTime() public {
    blockTime = block.timestamp;
}

}