Skip to content

Commit

Permalink
update the compiler version to 0.8.28
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowDom committed Jan 13, 2025
1 parent 01d4cc2 commit a823daf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions contracts/contracts/token/WOETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.8.0;
import { ERC4626 } from "../../lib/openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import { Governable } from "../governance/Governable.sol";
Expand Down Expand Up @@ -31,11 +32,11 @@ contract WOETH is ERC4626, Governable, Initializable {
OETH(address(asset())).rebaseOptIn();
}

function name() public view virtual override returns (string memory) {
function name() public view virtual override(ERC20, IERC20Metadata) returns (string memory) {
return "Wrapped OETH";
}

function symbol() public view virtual override returns (string memory) {
function symbol() public view virtual override(ERC20, IERC20Metadata) returns (string memory) {
return "wOETH";
}

Expand Down
5 changes: 3 additions & 2 deletions contracts/contracts/token/WOSonic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.8.0;
import { ERC4626 } from "../../lib/openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import { Governable } from "../governance/Governable.sol";
Expand All @@ -30,11 +31,11 @@ contract WOSonic is ERC4626, Governable, Initializable {
OSonic(address(asset())).rebaseOptIn();
}

function name() public view virtual override returns (string memory) {
function name() public view virtual override(ERC20, IERC20Metadata) returns (string memory) {
return "Wrapped Origin Sonic";
}

function symbol() public view virtual override returns (string memory) {
function symbol() public view virtual override(ERC20, IERC20Metadata) returns (string memory) {
return "wOS";
}

Expand Down
5 changes: 3 additions & 2 deletions contracts/contracts/token/WrappedOusd.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.8.0;
import { ERC4626 } from "../../lib/openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import { Governable } from "../governance/Governable.sol";
Expand All @@ -26,11 +27,11 @@ contract WrappedOusd is ERC4626, Governable, Initializable {
OUSD(address(asset())).rebaseOptIn();
}

function name() public view override returns (string memory) {
function name() public view override(ERC20, IERC20Metadata) returns (string memory) {
return "Wrapped OUSD";
}

function symbol() public view override returns (string memory) {
function symbol() public view override(ERC20, IERC20Metadata) returns (string memory) {
return "WOUSD";
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const { provider, chainId } = getHardhatNetworkProperties();

module.exports = {
solidity: {
version: "0.8.10",
version: "0.8.28",
settings: {
optimizer: {
enabled: true,
Expand Down

0 comments on commit a823daf

Please sign in to comment.