Nfts: minor fixes (#13576)

* Rename owner_of_item to owned_item

* Move AttributeNamespace into the types file
This commit is contained in:
Jegor Sidorenko authored and GitHub committed 2023-03-10 09:52:10 +00:00
1 parent 03b2358dd1
commit 689c2f6d4e
5 files changed
+25 -28

No files matched your search

+3 -3
View File
@@ -335,7 +335,7 @@ fn mint_should_work() {
1,
42,
account(2),
Some(MintWitness { owner_of_item: 42 })
Some(MintWitness { owned_item: 42 })
),
Error::<Test>::BadWitness
);
@@ -344,7 +344,7 @@ fn mint_should_work() {
1,
42,
account(2),
Some(MintWitness { owner_of_item: 43 })
Some(MintWitness { owned_item: 43 })
));
// can't mint twice
@@ -354,7 +354,7 @@ fn mint_should_work() {
1,
46,
account(2),
Some(MintWitness { owner_of_item: 43 })
Some(MintWitness { owned_item: 43 })
),
Error::<Test>::AlreadyClaimed
);