Skip to content

Commit

Permalink
fixup! Add wallet adapter for NuFi
Browse files Browse the repository at this point in the history
  • Loading branch information
gyorgy-kurucz-vacuum committed Jun 28, 2022
1 parent 0202a2f commit 4c9e965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wallets/nufi/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import {
WalletConnectionError,
WalletDisconnectedError,
WalletDisconnectionError,
WalletError,
WalletName,
WalletNotConnectedError,
WalletNotReadyError,
WalletPublicKeyError,
WalletReadyState,
WalletSignMessageError,
WalletSignTransactionError,
} from '@solana/wallet-adapter-base';
import { Connection, PublicKey, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js';
Expand Down Expand Up @@ -209,7 +209,7 @@ export class NufiWalletAdapter extends BaseMessageSignerWalletAdapter {
const { signature } = await wallet.signMessage(message);
return signature;
} catch (error: any) {
throw new WalletSignTransactionError(error?.message, error);
throw new WalletSignMessageError(error?.message, error);
}
} catch (error: any) {
this.emit('error', error);
Expand Down

0 comments on commit 4c9e965

Please sign in to comment.