diff --git a/README.md b/README.md index ccdd7db..beacf1e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Fullstack Web3 Template v2.1.0 +# Fullstack Web3 Template v2.2.0 ## QuickStart diff --git a/smartcontracts/src/Counter.sol b/smartcontracts/src/Counter.sol index 95e936b..92a7f51 100644 --- a/smartcontracts/src/Counter.sol +++ b/smartcontracts/src/Counter.sol @@ -11,4 +11,10 @@ contract Counter { function increment() public { number++; } + + error CustomError(string message, uint256 yourAmount); + + function getError(uint256 yourAmount) public pure returns (string memory) { + revert CustomError("An error occurred", yourAmount); + } }