Я сделал свою нфт, но в кошельке и обозревателе, изображение не загружается. Как мне это…
- User
Я сделал свою нфт, но в кошельке и обозревателе, изображение не загружается. Как мне это исправить, чтобы отоброжалась не серая заглушка, а мой файл по ссылке.
// SPDX-License-Identifier: MIT // Compatible with OpenZeppelin Contracts ^5.0.0 pragma solidity ^0.8.27;
import {ERC721} from "@openzeppelin/contracts@5.3.0/token/ERC721/ERC721.sol"; import {Ownable} from "@openzeppelin/contracts@5.3.0/access/Ownable.sol";
contract TestNode is ERC721, Ownable { uint256 private _nextTokenId;
constructor(address initialOwner) ERC721("TestNode", "TN") Ownable(initialOwner) {} function _baseURI() internal pure override returns (string memory) { return "https://lavender-definite-tyrannosaurus-243.mypinata.cloud/ipfs/bafybeigmeyzb3dth4p2dzrvzq5bihqqrrrmdngkxova2hmgciyxh6bqokm"; } function safeMint(address to) public onlyOwner returns (uint256) { uint256 tokenId = _nextTokenId++; _safeMint(to, tokenId); return tokenId; }}
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.