Skip to content

Commit

Permalink
Fix orderbook fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
maltekliemann committed Jul 8, 2024
1 parent 28b99af commit 90f8f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zrml/orderbook/fuzz/orderbook_v1_full_workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -92,7 +92,7 @@ fn asset(seed: (u128, u16)) -> Asset<u128> {
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,
}
}
Expand Down

0 comments on commit 90f8f09

Please sign in to comment.