在 Remix 中未在同一路线中找到合同
Not found Contracts in same route in Remix
我不知道为什么我不关心是否正确指定了脚本。我截取屏幕截图以检查 Remix 中的错误。
下面是编译错误的图片
代码的语法也很欣赏,权利..不是吗?
ERC721全合约不为空
//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);
}
} ```
您的 ERC721Full .sol
名称中的圆点前有一个 space。
删除 space,使其成为 ERC721Full.sol
,您将能够导入它。
我不知道为什么我不关心是否正确指定了脚本。我截取屏幕截图以检查 Remix 中的错误。
下面是编译错误的图片
代码的语法也很欣赏,权利..不是吗?
ERC721全合约不为空
//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);
}
} ```
您的 ERC721Full .sol
名称中的圆点前有一个 space。
删除 space,使其成为 ERC721Full.sol
,您将能够导入它。