Skip to content

Commit

Permalink
fix intialize_user typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbigz committed Nov 26, 2023
1 parent 02483ad commit 5d35114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/driftpy/drift_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5d35114

Please sign in to comment.