From 90f8f0962806cefa32cd1cc1034561b7834ad4d3 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Mon, 8 Jul 2024 14:07:11 +0200 Subject: [PATCH] Fix orderbook fuzz --- zrml/orderbook/fuzz/orderbook_v1_full_workflow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zrml/orderbook/fuzz/orderbook_v1_full_workflow.rs b/zrml/orderbook/fuzz/orderbook_v1_full_workflow.rs index 90863f7fa..a23fa0330 100644 --- a/zrml/orderbook/fuzz/orderbook_v1_full_workflow.rs +++ b/zrml/orderbook/fuzz/orderbook_v1_full_workflow.rs @@ -19,7 +19,7 @@ #![no_main] use libfuzzer_sys::fuzz_target; -use zeitgeist_primitives::types::{Asset, ScalarPosition, SerdeWrapper}; +use zeitgeist_primitives::types::{Asset, ScalarPosition}; use zrml_orderbook::mock::{ExtBuilder, Orderbook, RuntimeOrigin}; #[cfg(feature = "arbitrary")] @@ -92,7 +92,7 @@ fn asset(seed: (u128, u16)) -> Asset { if seed1 % 2 == 0 { ScalarPosition::Long } else { ScalarPosition::Short }; Asset::ScalarOutcome(seed0, scalar_position) } - 2 => Asset::PoolShare(SerdeWrapper(seed0)), + 2 => Asset::PoolShare(seed0), _ => Asset::Ztg, } }