Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Chinchilla <[email protected]>
  • Loading branch information
ChrisChinchilla committed Mar 28, 2024
1 parent 802d3ab commit 8f1bbf3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { useSignExtrinsicCallback } from './useExtrinsicCallback'
import { useStoreTxSignCallback } from './useStoreTxSignCallback'

// The _keyUri parameter is there to show that the DID key pair is looked up using the URI
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function lookupDidKeyPair(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_keyUri: Kilt.DidResourceUri
): Kilt.KiltKeyringPair {
return Kilt.Utils.Crypto.makeKeypairFromSeed()
Expand Down
3 changes: 1 addition & 2 deletions code_examples/sdk_examples/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ const FAUCET_SEED_ENV = 'FAUCET_SEED'

const wssAddress = process.env.WSS_ADDRESS || 'wss://peregrine.kilt.io'
const mnemonic = process.env[MNEMONIC_ENV]
const faucetSeed = process.env[FAUCET_SEED_ENV]

const faucetSeed = process.env[FAUCET_SEED_ENV] || '0xe566550fec3ca23d80dfe9e9529ada463b93fc33f17219c1089de906f7253f1c'
let baseAccountStrategy: 'base-mnemonic' | 'faucet-seed' = 'base-mnemonic'

// Faucet seed only a fallback if mnemonic is not specified. Otherwise mnemonic always wins.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export async function attestCredential(
attesterAccount: Kilt.KiltKeyringPair,
attesterDid: Kilt.DidUri,
credential: Kilt.ICredential,
// TODO: Sort later
// eslint-disable-next-line @typescript-eslint/no-unused-vars
signCallback: Kilt.SignExtrinsicCallback
): Promise<void> {
const api = Kilt.ConfigService.get('api')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { config as envConfig } from 'dotenv'
import * as Kilt from '@kiltprotocol/sdk-js'
import { config as envConfig } from 'dotenv'
import { generateAccount } from './generateAccount'

export async function createFullDid(
Expand Down

0 comments on commit 8f1bbf3

Please sign in to comment.