Skip to content

Commit

Permalink
directed stake sdk to use require pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Dec 19, 2023
1 parent bf799ef commit ddbf1f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/marinade-directed-stake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ import {
*/
export function getDirectedStakeSdk(
connection: Connection,
walletPublicKey: PublicKey | null
walletPublicKey: PublicKey
): DirectedStakeSdk {
return new DirectedStakeSdk({
connection,
wallet: {
signTransaction: async () => new Promise(() => new Transaction()),
signAllTransactions: async () => new Promise(() => [new Transaction()]),
publicKey: walletPublicKey ?? PublicKey.default,
publicKey: walletPublicKey,
},
})
}
Expand Down

0 comments on commit ddbf1f3

Please sign in to comment.