@@ -27,8 +27,8 @@ export class grpcDriftClientAccountSubscriberV2 extends WebSocketDriftClientAcco
2727 private perpMarketsSubscriber ?: grpcMultiAccountSubscriber < PerpMarketAccount > ;
2828 private spotMarketsSubscriber ?: grpcMultiAccountSubscriber < SpotMarketAccount > ;
2929 private oracleMultiSubscriber ?: grpcMultiAccountSubscriber < OraclePriceData > ;
30- private perpMarketIndexToAccountPubkeyMap = new Map < number , PublicKey > ( ) ;
31- private spotMarketIndexToAccountPubkeyMap = new Map < number , PublicKey > ( ) ;
30+ private perpMarketIndexToAccountPubkeyMap = new Map < number , string > ( ) ;
31+ private spotMarketIndexToAccountPubkeyMap = new Map < number , string > ( ) ;
3232
3333 constructor (
3434 grpcConfigs : GrpcConfigs ,
@@ -213,7 +213,7 @@ export class grpcDriftClientAccountSubscriberV2 extends WebSocketDriftClientAcco
213213 marketIndex ,
214214 accountPubkey ,
215215 ] of perpMarketIndexToAccountPubkeys ) {
216- this . perpMarketIndexToAccountPubkeyMap . set ( marketIndex , accountPubkey ) ;
216+ this . perpMarketIndexToAccountPubkeyMap . set ( marketIndex , accountPubkey . toBase58 ( ) ) ;
217217 }
218218
219219 const perpMarketPubkeys = perpMarketIndexToAccountPubkeys . map (
@@ -272,7 +272,7 @@ export class grpcDriftClientAccountSubscriberV2 extends WebSocketDriftClientAcco
272272 marketIndex ,
273273 accountPubkey ,
274274 ] of spotMarketIndexToAccountPubkeys ) {
275- this . spotMarketIndexToAccountPubkeyMap . set ( marketIndex , accountPubkey ) ;
275+ this . spotMarketIndexToAccountPubkeyMap . set ( marketIndex , accountPubkey . toBase58 ( ) ) ;
276276 }
277277
278278 const spotMarketPubkeys = spotMarketIndexToAccountPubkeys . map (
0 commit comments