From 230f3fff608c0b273603c73d34ef5e531278a46a Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 5 Aug 2024 14:35:45 -0700 Subject: [PATCH] foo --- frc53_nft/src/lib.rs | 8 +------- testing/integration/tests/frc46_tokens.rs | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/frc53_nft/src/lib.rs b/frc53_nft/src/lib.rs index 455d4ae7..b0711889 100644 --- a/frc53_nft/src/lib.rs +++ b/frc53_nft/src/lib.rs @@ -590,13 +590,7 @@ mod test { { // mint no tokens let mut hook = nft - .mint( - &ALICE, - &ALICE, - vec![String::new(); 0], - RawBytes::default(), - RawBytes::default(), - ) + .mint(&ALICE, &ALICE, Vec::default(), RawBytes::default(), RawBytes::default()) .unwrap(); let res = hook.call(&nft.runtime).unwrap(); assert_eq!(res.token_ids, Vec::::default()); diff --git a/testing/integration/tests/frc46_tokens.rs b/testing/integration/tests/frc46_tokens.rs index c4645828..74a41f08 100644 --- a/testing/integration/tests/frc46_tokens.rs +++ b/testing/integration/tests/frc46_tokens.rs @@ -65,7 +65,7 @@ fn it_mints_tokens() { gas_limit: 99999999, method_num, sequence, - params: if let Some(params) = params { params } else { RawBytes::default() }, + params: params.unwrap_or_default(), ..Message::default() }; sequence += 1;