首页 > 解决方案 > 在 Remix 的同一路线中找不到合同

问题描述

我不知道为什么我不在乎是否正确指定了脚本。我截取屏幕截图以检查 Remix 中的错误。 在此处输入图像描述

在编译错误的图像下方

在此处输入图像描述

代码的语法也赞赏权利..不是吗?

ERC721Full合约不为空

//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0-beta.0/contracts/token/ERC721/ERC721Enumerable.sol";
import "./ERC721Metadata.sol";

/**
 * @title Full ERC721 Token
 * @dev This implementation includes all the required and some optional functionality of the ERC721 standard
 * Moreover, it includes approve all functionality using operator terminology.
 *
 * See https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721Full is ERC721Enumerable, ERC721Metadata {
    constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) { }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        virtual
        override(ERC721Enumerable, ERC721Metadata)
        internal
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }
} ```

标签: solidity

解决方案


ERC721Full .sol的名字中有一个空格,在点之前。

删除空格,使其为ERC721Full.sol,您将能够导入它。

IDE 截图


推荐阅读