@@ -1102,7 +1102,7 @@ export class DriftClient {
11021102 this . wallet . publicKey // only allow payer to initialize own user stats account
11031103 ) ,
11041104 authority : this . wallet . publicKey ,
1105- payer : this . wallet . publicKey ,
1105+ payer : this . wallet . payer ?. publicKey ?? this . wallet . publicKey ,
11061106 rent : anchor . web3 . SYSVAR_RENT_PUBKEY ,
11071107 systemProgram : anchor . web3 . SystemProgram . programId ,
11081108 state : await this . getStatePublicKey ( ) ,
@@ -1142,7 +1142,7 @@ export class DriftClient {
11421142 accounts : {
11431143 signedMsgUserOrders : signedMsgUserAccountPublicKey ,
11441144 authority,
1145- payer : this . wallet . publicKey ,
1145+ payer : this . wallet . payer ?. publicKey ?? this . wallet . publicKey ,
11461146 rent : anchor . web3 . SYSVAR_RENT_PUBKEY ,
11471147 systemProgram : anchor . web3 . SystemProgram . programId ,
11481148 } ,
@@ -1183,7 +1183,7 @@ export class DriftClient {
11831183 accounts : {
11841184 signedMsgUserOrders : signedMsgUserAccountPublicKey ,
11851185 authority,
1186- payer : this . wallet . publicKey ,
1186+ payer : this . wallet . payer ?. publicKey ?? this . wallet . publicKey ,
11871187 systemProgram : anchor . web3 . SystemProgram . programId ,
11881188 user : await getUserAccountPublicKey (
11891189 this . program . programId ,
@@ -1321,7 +1321,7 @@ export class DriftClient {
13211321 authority ?? this . wallet . publicKey
13221322 ) ,
13231323 authority : authority ?? this . wallet . publicKey ,
1324- payer : this . wallet . publicKey ,
1324+ payer : this . wallet . payer ?. publicKey ?? this . wallet . publicKey ,
13251325 rent : anchor . web3 . SYSVAR_RENT_PUBKEY ,
13261326 systemProgram : anchor . web3 . SystemProgram . programId ,
13271327 } ,
@@ -1407,7 +1407,7 @@ export class DriftClient {
14071407 user : userAccountPublicKey ,
14081408 userStats : this . getUserStatsAccountPublicKey ( ) ,
14091409 authority : this . wallet . publicKey ,
1410- payer : this . wallet . publicKey ,
1410+ payer : this . wallet . payer ?. publicKey ?? this . wallet . publicKey ,
14111411 rent : anchor . web3 . SYSVAR_RENT_PUBKEY ,
14121412 systemProgram : anchor . web3 . SystemProgram . programId ,
14131413 state : await this . getStatePublicKey ( ) ,
@@ -1457,7 +1457,7 @@ export class DriftClient {
14571457 user : userAccountPublicKey ,
14581458 authority : this . wallet . publicKey ,
14591459 userStats : this . getUserStatsAccountPublicKey ( ) ,
1460- payer : this . wallet . publicKey ,
1460+ payer : this . wallet . payer ?. publicKey ?? this . wallet . publicKey ,
14611461 rent : anchor . web3 . SYSVAR_RENT_PUBKEY ,
14621462 systemProgram : anchor . web3 . SystemProgram . programId ,
14631463 } ,
@@ -8630,7 +8630,7 @@ export class DriftClient {
86308630 this . wallet . publicKey // only allow payer to initialize own insurance fund stake account
86318631 ) ,
86328632 authority : this . wallet . publicKey ,
8633- payer : this . wallet . publicKey ,
8633+ payer : this . wallet . payer ?. publicKey ?? this . wallet . publicKey ,
86348634 rent : anchor . web3 . SYSVAR_RENT_PUBKEY ,
86358635 systemProgram : anchor . web3 . SystemProgram . programId ,
86368636 state : await this . getStatePublicKey ( ) ,
@@ -9743,7 +9743,7 @@ export class DriftClient {
97439743 const tx = await asV0Tx ( {
97449744 connection : this . connection ,
97459745 ixs : [ pullIx ] ,
9746- payer : this . wallet . publicKey ,
9746+ payer : this . wallet . payer ?. publicKey ?? this . wallet . publicKey ,
97479747 computeUnitLimitMultiple : 1.3 ,
97489748 lookupTables : await this . fetchAllLookupTableAccounts ( ) ,
97499749 } ) ;
0 commit comments