fix: Correct BN import for withdrawal system

Changed from '@project-serum/anchor' to 'bn.js' to match
other Drift SDK integrations. Fixes 'Cannot read properties
of undefined (reading '_bn')' error.

User can now test withdrawal with $5 minimum.
This commit is contained in:
mindesbunister
2025-11-19 18:39:45 +01:00
parent 1c79178aac
commit 9cd317887a
2 changed files with 9 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
* Handles actual withdrawal from Drift Protocol to wallet
*/
import { BN } from '@project-serum/anchor'
import BN from 'bn.js'
import { PublicKey } from '@solana/web3.js'
import { initializeDriftService } from './client'