【发布时间】:2021-07-22 18:59:08
【问题描述】:
我正在尝试在 BSC Scan 测试网上验证和发布合同。 我正在使用 Open Zepellin 和 Remix - ETH IDE,但是我收到以下错误:
未找到:不支持文件导入回调
如果我尝试在 Etherscan 上进行验证,我相信同样的问题是正确的。
我做错了什么?
这是我粘贴在 BSC Scan 上的代码,用于验证和发布它。
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Presidente is ERC20, Ownable {
constructor() ERC20("Presidente", "PRES") {
_mint(msg.sender, 1000000 * 10 ** decimals());
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}
【问题讨论】:
-
我也有同样的问题。
标签: ethereum solidity etherscan binance-smart-chain binance-chain