Avatar
1
tvd12 Enlightened
tvd12 Enlightened
Ý tưởng về trò chơi lời hứa - 001: định nghĩa contract
Mình có ý tưởng về 1 game blockchain: giữ lời hứa, và đây là Contract sơ bộ: <p> </p> <pre> // contracts/KeepPromise.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./../../utils/Counters.sol"; struct Promise { uint256 _id; string _promise; string _deadline; string _punishment;
Answer