From e9075b299975b47717f027f249dbdcc2963ad301 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Wed, 15 Jan 2025 12:52:33 -0800 Subject: [PATCH] fix idl --- programs/jit-proxy/src/instructions/jit.rs | 4 ++-- ts/sdk/src/types/jit_proxy.ts | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/programs/jit-proxy/src/instructions/jit.rs b/programs/jit-proxy/src/instructions/jit.rs index f1cd2c9..2000b77 100644 --- a/programs/jit-proxy/src/instructions/jit.rs +++ b/programs/jit-proxy/src/instructions/jit.rs @@ -8,7 +8,7 @@ use drift::math::casting::Cast; use drift::math::safe_math::SafeMath; use drift::program::Drift; use drift::state::order_params::OrderParams; -use drift::state::perp_market_map::{get_writable_perp_market_set, PerpMarketMap}; +use drift::state::perp_market_map::PerpMarketMap; use drift::state::spot_market_map::SpotMarketMap; use drift::state::state::State; use drift::state::swift_user::SwiftUserOrdersLoader; @@ -135,7 +135,7 @@ pub fn jit_swift<'c: 'info, 'info>( mut oracle_map, } = load_maps( remaining_accounts_iter, - &get_writable_perp_market_set(taker_order.market_index), + &BTreeSet::new(), &BTreeSet::new(), slot, None, diff --git a/ts/sdk/src/types/jit_proxy.ts b/ts/sdk/src/types/jit_proxy.ts index f7dc0ce..c5b47f1 100644 --- a/ts/sdk/src/types/jit_proxy.ts +++ b/ts/sdk/src/types/jit_proxy.ts @@ -92,11 +92,6 @@ export type JitProxy = { name: 'driftProgram'; isMut: false; isSigner: false; - }, - { - name: 'ixSysvar'; - isMut: false; - isSigner: false; } ]; args: [ @@ -481,11 +476,6 @@ export const IDL: JitProxy = { isMut: false, isSigner: false, }, - { - name: 'ixSysvar', - isMut: false, - isSigner: false, - }, ], args: [ {