git.delta.rocks / unique-network / refs/commits / 8443538fb809

difftreelog

source

tests/src/substrate/privateKey.ts383 Bsourcehistory
1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56import {Keyring} from '@polkadot/api';7import {IKeyringPair} from '@polkadot/types/types';89export default function privateKey(account: string): IKeyringPair {10  const keyring = new Keyring({type: 'sr25519'});1112  return keyring.addFromUri(account);13}