Skip to content

Commit

Permalink
fix optimisation showcase.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
yongkangc committed Apr 14, 2024
1 parent b7a6f3f commit a314b8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/unoptimized_contracts/OptimizationShowcase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ contract OptimizationShowcase {

// Unoptimized function
function calculateSumUnoptimized() public view returns (uint256) {
require(variable1 < 10, "Variable1 should be less than 10");
require(variable2 < 10, "Variable2 should be less than 10");
uint256 sum = variable1 + variable2;
return sum;
}
Expand Down

0 comments on commit a314b8d

Please sign in to comment.