Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Feb 11, 2022
1 parent 997a8b2 commit e6d727f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions 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'
Expand All @@ -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)
}

Expand Down

0 comments on commit e6d727f

Please sign in to comment.