我一直在测试我的 erc-721 合同,其中包含指向我的 ipfs 哈希的链接ipfs://QmeB87321i121xN88bXZzmjSUXqS46B8bU3H9ocyTb8tJf
作为基本令牌 URI。合同已部署,项目已由我铸造,但 OpenSea 无法按预期读取元数据 uri。OpenSea 上的文档表明它应该足够了。
我的合同
pragma solidity ^0.5.0;
import "./ERC721Tradable.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
contract Creature is ERC721Tradable {
constructor(address _proxyRegistryAddress)
public
ERC721Tradable("StygianCoins", "STG", _proxyRegistryAddress)
{}
function baseTokenURI() public pure returns (string memory) {
return "https://ipfs.io/ipfs/QmeB87321i121xN88bXZzmjSUXqS46B8bU3H9ocyTb8tJf";
}
function contractURI() public pure returns (string memory) {
return "https://contract-abis.herokuapp.com/api/contract/stygian-coins";
}
}