Skip to content

Commit

Permalink
Bump pragma as older 0.8.x solc could not compile the file
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jan 18, 2024
1 parent 3596ebe commit c2f18a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TermsOfService.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;
pragma solidity ^0.8.23;

import "@openzeppelin/access/Ownable.sol";

Expand Down Expand Up @@ -76,7 +76,7 @@ contract TermsOfService is Ownable, ITermsOfService {
* as the message string here is just for the event log keeping.
*
*/
function updateTermsOfService(uint16 version, bytes32 acceptanceMessageHash, string acceptanceMessage) public onlyOwner {
function updateTermsOfService(uint16 version, bytes32 acceptanceMessageHash, string calldata acceptanceMessage) public onlyOwner {
require(version == latestTermsOfServiceVersion + 1, "Versions must be updated incrementally");
require(acceptanceMessageHash != latestAcceptanceMessageHash, "Setting the same terms of service twice");
latestAcceptanceMessageHash = acceptanceMessageHash;
Expand Down

0 comments on commit c2f18a9

Please sign in to comment.