Description:
Smart contract deployed on Ethereum.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
contract MemoryNFT {
mapping(uint256 => string) public memories;
uint256 public memoryCount;
function mintMemory(string memory _memory) public {
memories[memoryCount] = _memory;
memoryCount++;
}
function getMemory(uint256 _id) public view returns (string memory) {
return memories[_id];
}
}
Submitted on: 2025-10-04 12:03:02
Comments
Log in to comment.
No comments yet.