Skip to content

Commit 3b7cf43

Browse files
authored
Update simple_nft.move
1 parent 7bcfe02 commit 3b7cf43

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

simplenft/sources/simple_nft.move

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11
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-
2+
use 0x1::signer;
3+
use 0x1::vector;
4+
use 0x1::string;
95

106
/// Примитивный 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-
}
7+
struct NFT has store { id: u64, name: string::String, owner: address }
8+
9+
struct Registry has store { next_id: u64, items: vector<NFT> }
2110

2211
public fun new_registry(_admin: &signer): Registry {
2312
Registry { next_id: 0, items: vector::empty<NFT>() }

0 commit comments

Comments
 (0)