0 votes
in BlockChain by
What are function modifiers in Solidity? Mention the most widely used modifiers.

1 Answer

0 votes
by

What are function modifiers in Solidity? Mention the most widely used modifiers.

In Solidity, function modifiers are used to easily modify the behavior of your smart contract functions. In simple terms, it can build additional features or apply restrictions on the function of smart contracts. The most extensively used function modifiers in solidity are: 

View, which are functions that cannot modify the state of a smart contract. They are read-only functions. Refer to our video to see an example of a View function

Pure, which are functions that neither read nor write the state of a smart contract. They return the same result determined by its input values. Refer to our video to see an example of a Pure function

Related questions

0 votes
asked Jun 13, 2022 in BlockChain by Robindeniel
0 votes
asked Nov 16, 2020 in BlockChain by rajeshsharma
...