There was an error while loading. Please reload this page.
1 parent 7bcfe02 commit 3b7cf43Copy full SHA for 3b7cf43
1 file changed
simplenft/sources/simple_nft.move
@@ -1,23 +1,12 @@
1
module SimpleNFT::nft {
2
-- use std::signer;
3
-- use std::vector;
4
-- use std::string;
5
-+ use 0x1::signer;
6
-+ use 0x1::vector;
7
-+ use 0x1::string;
8
-
+use 0x1::signer;
+use 0x1::vector;
+use 0x1::string;
9
10
/// Примитивный NFT (без рыночной логики)
11
- struct NFT has key {
12
- id: u64,
13
- name: string::String,
14
- owner: address,
15
- }
16
17
- struct Registry has key {
18
- next_id: u64,
19
- items: vector<NFT>,
20
+ struct NFT has store { id: u64, name: string::String, owner: address }
+
+ struct Registry has store { next_id: u64, items: vector<NFT> }
21
22
public fun new_registry(_admin: &signer): Registry {
23
Registry { next_id: 0, items: vector::empty<NFT>() }
0 commit comments