From e6d727f2e288273def827bec895843f93f9a1100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Fri, 11 Feb 2022 13:59:14 +0900 Subject: [PATCH] ? https://github.com/project-serum/anchor/pull/1363 --- gauntlet/packages/gauntlet-solana/src/commands/wallet.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gauntlet/packages/gauntlet-solana/src/commands/wallet.ts b/gauntlet/packages/gauntlet-solana/src/commands/wallet.ts index 4195c1631..a4840a839 100644 --- a/gauntlet/packages/gauntlet-solana/src/commands/wallet.ts +++ b/gauntlet/packages/gauntlet-solana/src/commands/wallet.ts @@ -1,4 +1,3 @@ -const { Wallet } = require('@project-serum/anchor') import { Wallet as SerumWallet } from '@project-serum/anchor' import { Keypair, PublicKey, Transaction } from '@solana/web3.js' import TransportNodeHid from '@ledgerhq/hw-transport-node-hid' @@ -22,15 +21,15 @@ export abstract class SolanaWallet { } export class LocalWallet extends SolanaWallet { - wallet: typeof SerumWallet + wallet: SerumWallet - private constructor(wallet: typeof SerumWallet) { + private constructor(wallet: SerumWallet) { super() this.wallet = wallet } static create = async (keypair: Keypair) => { - const wallet = new Wallet(keypair) + const wallet = new SerumWallet(keypair) return new LocalWallet(wallet) }