Answers for "Pure Function Solidity"

0

Pure Function Solidity

pragma solidity ^0.8.13;
contract MySmartContract {
address public owner;
constructor() {
owner= msg.sender;
}
//Function Pure doesn't need a previous declaration!
function isThisAPureFunction() pure public returns(bool) {
return true;
}
}
Posted by: Guest on April-23-2022

Browse Popular Code Answers by Language