Pure Function Solidity

[Solved] Pure Function Solidity | Solidity - Code Explorer | yomemimo.com
Question : Pure Function Solidity

Answered by : daedalus-lux

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;
}
}

Source : | Last Update : Sat, 30 Apr 22

Answers related to pure function solidity

Code Explorer Popular Question For Solidity