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ộ: // 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; address _punisher; } contract KeepPromise is ERC721 { ...
Answer