git.delta.rocks / unique-network / refs/commits / 3c1f2feaa85d

difftreelog

style(nonfungible) benchmarking warnings

Yaroslav Bolyukin2023-03-24parent: #59156c4.patch.diff
in: master

2 files changed

modifiedpallets/common/src/benchmarking.rsdiffbeforeafterboth
14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
16
17#![allow(missing_docs)]
1618
17use sp_std::vec::Vec;19use sp_std::vec::Vec;
18use crate::{Config, CollectionHandle, Pallet};20use crate::{Config, CollectionHandle, Pallet};
modifiedpallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -232,8 +232,7 @@
 			owner: cross_from_sub;
 		};
 		let item = create_max_item(&collection, &owner, owner.clone())?;
-
-	}: {collection.token_owner(item)}
+	}: {collection.token_owner(item).unwrap()}
 
 	set_allowance_for_all {
 		bench_init!{