diff --git a/code_examples/sdk_examples/src/core_features/signCallback/index.ts b/code_examples/sdk_examples/src/core_features/signCallback/index.ts index da9341892..9d68391a8 100644 --- a/code_examples/sdk_examples/src/core_features/signCallback/index.ts +++ b/code_examples/sdk_examples/src/core_features/signCallback/index.ts @@ -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() diff --git a/code_examples/sdk_examples/src/test.ts b/code_examples/sdk_examples/src/test.ts index 30e19597f..3bf3594d7 100644 --- a/code_examples/sdk_examples/src/test.ts +++ b/code_examples/sdk_examples/src/test.ts @@ -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. diff --git a/code_examples/sdk_examples/src/workshop/attester/attestCredential.ts b/code_examples/sdk_examples/src/workshop/attester/attestCredential.ts index 44a5101cb..94f692af7 100644 --- a/code_examples/sdk_examples/src/workshop/attester/attestCredential.ts +++ b/code_examples/sdk_examples/src/workshop/attester/attestCredential.ts @@ -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 { const api = Kilt.ConfigService.get('api') diff --git a/code_examples/sdk_examples/src/workshop/attester/generateDid.ts b/code_examples/sdk_examples/src/workshop/attester/generateDid.ts index def627d5b..c1911c9e6 100644 --- a/code_examples/sdk_examples/src/workshop/attester/generateDid.ts +++ b/code_examples/sdk_examples/src/workshop/attester/generateDid.ts @@ -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(