Skip to content

Commit

Permalink
fix other place where ~ is not expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
wmira committed Dec 28, 2023
1 parent 06497d2 commit 0dda95c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/includes/_orderbook_blockchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {DriftClient, UserMap, Wallet, loadKeypair} from "@drift-labs/sdk";

const connection = new Connection("https://api.mainnet-beta.solana.com");

const keyPairFile = '~/.config/solana/my-keypair.json';
const keyPairFile = `${process.env.HOME}/.config/solana/my-keypair.json`;
const wallet = new Wallet(loadKeypair(privateKeyFile))

const driftClient = new DriftClient({
Expand Down Expand Up @@ -64,7 +64,7 @@ import {DriftClient, OrderSubscriber, Wallet, loadKeypair} from "@drift-labs/sdk

const connection = new Connection("https://api.mainnet-beta.solana.com");

const keyPairFile = '~/.config/solana/my-keypair.json';
const keyPairFile = `${process.env.HOME}/.config/solana/my-keypair.json`;
const wallet = new Wallet(loadKeypair(privateKeyFile))

const driftClient = new DriftClient({
Expand Down
2 changes: 1 addition & 1 deletion source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ import {Wallet, loadKeypair, DriftClient} from "@drift-labs/sdk";

const connection = new Connection('https://api.mainnet-beta.solana.com');

const keyPairFile = '~/.config/solana/my-keypair.json';
const keyPairFile = `${process.env.HOME}/.config/solana/my-keypair.json`;
const wallet = new Wallet(loadKeypair(keyPairFile))

const driftClient = new DriftClient({
Expand Down

0 comments on commit 0dda95c

Please sign in to comment.