Skip to content

Commit

Permalink
use assert instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nazreen committed Dec 11, 2024
1 parent 48874f5 commit 318754b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/oft-solana/tasks/solana/base58.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import assert from 'assert'
import fs from 'fs'
import path from 'path'

Expand All @@ -14,7 +15,9 @@ interface Base58FeesTaskArgs {
keypairFile: string
}

const defaultKeypairFile = path.resolve(process.env.HOME!, '.config/solana/id.json')
assert(process.env.HOME != undefined, 'process.env.HOME needs to be defined')

const defaultKeypairFile = path.resolve(process.env.HOME, '.config/solana/id.json')

task('lz:solana:base-58', 'Outputs the base58 string for a keypair')
.addParam(
Expand Down

0 comments on commit 318754b

Please sign in to comment.