Skip to content

Commit

Permalink
chore: run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Mar 7, 2024
1 parent 6c07a6e commit 4e6b5ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ISubmittableResult } from '@polkadot/types/types'
import { KeyringPair } from '@polkadot/keyring/types'
import { BN } from '@polkadot/util'
import { spawn } from 'child_process'
import { writeFile, chmod } from 'node:fs/promises';
import { writeFile, chmod } from 'node:fs/promises'
const program = new Command()

enum NetworkNames {
Expand Down Expand Up @@ -154,7 +154,7 @@ async function data(blob: string, options: {

const lc = async (options: {
network: NetworkNames
config: string,
config: string
identity: string
}): Promise<void> => {
try {
Expand All @@ -180,8 +180,8 @@ const lc = async (options: {

const setId = async (seed: string): Promise<void> => {
try {
await writeFile(`${process.env.HOME}/.availup/identity.toml`, seed)
await chmod(`${process.env.HOME}/.availup/identity.toml`, 0o700)
await writeFile(`${process.env.HOME as string}/.availup/identity.toml`, seed)
await chmod(`${process.env.HOME as string}/.availup/identity.toml`, 0o700)
} catch (err) {
console.error(err)
process.exit(1)
Expand Down

0 comments on commit 4e6b5ad

Please sign in to comment.