'nobody' pair for default account & signature
This commit is contained in:
+2
-6
@@ -5,16 +5,12 @@
|
||||
|
||||
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '../types';
|
||||
|
||||
const hexToU8a = require('@polkadot/util/hex/toU8a');
|
||||
|
||||
const addressEncode = require('../address/encode');
|
||||
|
||||
const publicKey = hexToU8a(
|
||||
'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'
|
||||
);
|
||||
const publicKey = new Uint8Array(32);
|
||||
const address = addressEncode(publicKey);
|
||||
const meta = {
|
||||
name: 'everybody'
|
||||
name: 'nobody'
|
||||
};
|
||||
const json = {
|
||||
address,
|
||||
@@ -11,7 +11,7 @@ type TestKeyringMap = {
|
||||
};
|
||||
|
||||
const createKeyring = require('./testing');
|
||||
const everybody = require('./pair/everybody')();
|
||||
const nobody = require('./pair/nobody')();
|
||||
|
||||
module.exports = function testKeyringPairs (): TestKeyringMap {
|
||||
const keyring = createKeyring();
|
||||
@@ -23,5 +23,5 @@ module.exports = function testKeyringPairs (): TestKeyringMap {
|
||||
result[(name: string)] = pair;
|
||||
|
||||
return result;
|
||||
}, { _keyring: keyring, everybody });
|
||||
}, { _keyring: keyring, nobody });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user