From ed20ec392bbe5a00d7049880772806055d9643be Mon Sep 17 00:00:00 2001 From: akhercha Date: Tue, 10 Oct 2023 15:48:25 +0200 Subject: [PATCH] test(base_order_handler): Revert changes --- src/exchange/base_order_handler.cairo | 1 - src/order/order_store_utils.cairo | 17 ++++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/exchange/base_order_handler.cairo b/src/exchange/base_order_handler.cairo index 7776402a..b182fc1c 100644 --- a/src/exchange/base_order_handler.cairo +++ b/src/exchange/base_order_handler.cairo @@ -203,7 +203,6 @@ mod BaseOrderHandler { referral_storage: self.referral_storage.read(), }; - /// TODO: get_uncompacted_oracle_block_numbers() isn't implemented yet let min_oracle_block_numbers = get_uncompacted_oracle_block_numbers( oracle_params.compacted_min_oracle_block_numbers.span(), oracle_params.tokens.len() ); diff --git a/src/order/order_store_utils.cairo b/src/order/order_store_utils.cairo index 1ad41906..e42c8bb1 100644 --- a/src/order/order_store_utils.cairo +++ b/src/order/order_store_utils.cairo @@ -1,21 +1,12 @@ use traits::Default; -use core::option::OptionTrait; -use satoru::data::data_store::{IDataStoreDispatcher, IDataStoreDispatcherTrait}; +use satoru::data::data_store::IDataStoreDispatcher; use satoru::order::order::Order; -use satoru::order::error::OrderError; -/// Retrieves an Order from the passed key -/// # Arguments -/// * `key` - The key linked to the Order. -/// # Return -/// Return the corresponding Order object fn get(data_store: IDataStoreDispatcher, key: felt252) -> Order { + // TODO Default::default() } -/// Link an Order with a key -/// # Arguments -/// * `key` - The key linked to the Order. -/// * `value` - The snapshot of the Order. -fn set(data_store: IDataStoreDispatcher, key: felt252, value: @Order) {} +fn set(data_store: IDataStoreDispatcher, key: felt252, value: @Order) { // TODO +}