Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R4R]:fix mantle token compile error on foundry #1282

Merged
merged 4 commits into from
Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/contracts/contracts/L2/predeploys/BVM_MANTLE.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployA

/* Contract Imports */
import { L2StandardERC20 } from "../../standards/L2StandardERC20.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";


/**
* @title BVM_MANTLE
Expand All @@ -22,19 +25,19 @@ contract BVM_MANTLE is L2StandardERC20 {
{}


function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
function transfer(address recipient, uint256 amount) public virtual override(ERC20,IERC20) returns (bool) {
revert("BVM_MANTLE: transfer is disabled pending further community discussion.");
}

function approve(address spender, uint256 amount) public virtual override returns (bool) {
function approve(address spender, uint256 amount) public virtual override(ERC20,IERC20) returns (bool) {
revert("BVM_MANTLE: approve is disabled pending further community discussion.");
}

function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
) public virtual override(ERC20,IERC20) returns (bool) {
revert("BVM_MANTLE: transferFrom is disabled pending further community discussion.");
}

Expand Down