Skip to content

Commit

Permalink
feat(staking): fix dummy wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvankhademi committed Oct 24, 2024
1 parent f3b7cc4 commit 237860c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions governance/pyth_staking_sdk/src/utils/wallet.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { AnchorWallet } from "@solana/wallet-adapter-react";
import { PublicKey } from "@solana/web3.js";
import { Keypair } from "@solana/web3.js";

export const DummyWallet: AnchorWallet = {
publicKey: PublicKey.default,
publicKey: Keypair.generate().publicKey,
signTransaction: () => {
throw new Error("Cannot sign transaction without a wallet");
},
Expand Down

0 comments on commit 237860c

Please sign in to comment.