From e2272e9932c35177d506c2d0c5ab5b1ee15aeeb4 Mon Sep 17 00:00:00 2001 From: frank <98238480+soundsonacid@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:51:01 -0600 Subject: [PATCH] frank/0.7.36 (#136) * 0.7.36 * asd --- src/driftpy/accounts/oracle.py | 4 ++-- tests/prelaunch.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/driftpy/accounts/oracle.py b/src/driftpy/accounts/oracle.py index 7e8648b5..65a7394a 100644 --- a/src/driftpy/accounts/oracle.py +++ b/src/driftpy/accounts/oracle.py @@ -23,7 +23,7 @@ with file.open() as f: raw = file.read_text() DRIFT_IDL = Idl.from_json(raw) -DRIFT_CODER = CODER(DRIFT_IDL) +DRIFT_CODER = Coder(DRIFT_IDL) def convert_pyth_price(price, scale=1): @@ -143,7 +143,7 @@ def decode_swb_price_info(data: bytes): def decode_prelaunch_price_info(data: bytes): - prelaunch_oracle = DRIFT_CODER.coder.accounts.decode(data) + prelaunch_oracle = DRIFT_CODER.accounts.decode(data) return OraclePriceData( price=prelaunch_oracle.price, diff --git a/tests/prelaunch.py b/tests/prelaunch.py index 9940576b..d8e62efb 100644 --- a/tests/prelaunch.py +++ b/tests/prelaunch.py @@ -25,7 +25,6 @@ ) from driftpy.types import * from driftpy.setup.helpers import initialize_sol_spot_market -from .math.helpers import looper workspace = workspace_fixture("protocol-v2", build_cmd="anchor build", scope="session")