From 5d35114573c460deb460a0883a035a8832a2c327 Mon Sep 17 00:00:00 2001 From: 0xbigz <83473873+0xbigz@users.noreply.github.com> Date: Sun, 26 Nov 2023 14:19:45 -0500 Subject: [PATCH] fix intialize_user typo --- src/driftpy/drift_client.py | 2 +- tests/test.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/driftpy/drift_client.py b/src/driftpy/drift_client.py index 971eca0b..60f5c083 100644 --- a/src/driftpy/drift_client.py +++ b/src/driftpy/drift_client.py @@ -209,7 +209,7 @@ async def send_ixs( return await self.program.provider.send(tx) - async def intialize_user(self, sub_account_id: int = 0): + async def initialize_user(self, sub_account_id: int = 0): """intializes a drift user Args: diff --git a/tests/test.py b/tests/test.py index f8ec1abc..faf2958a 100644 --- a/tests/test.py +++ b/tests/test.py @@ -190,7 +190,7 @@ async def test_market( async def test_init_user( drift_client: Admin, ): - await drift_client.intialize_user() + await drift_client.initialize_user() user_public_key = get_user_account_public_key( drift_client.program.program_id, drift_client.authority, 0 ) @@ -405,7 +405,7 @@ async def test_liq_perp( usdc_acc = await _create_and_mint_user_usdc( usdc_mint, drift_client.program.provider, USDC_AMOUNT, liq.pubkey() ) - await liq_drift_client.intialize_user() + await liq_drift_client.initialize_user() await liq_drift_client.add_user(0) await liq_drift_client.deposit( USDC_AMOUNT,