Rewrite yarn.lock (#2127)

This commit is contained in:
Jaco Greeff
2020-04-01 23:49:56 +02:00
committed by GitHub
parent 1f97c5e9e3
commit 58de0b8b9c
37 changed files with 172 additions and 154 deletions
@@ -12,6 +12,7 @@ export default function createDescriptor (registry: Registry, section: string, s
const callIndex = new Uint8Array([sectionIndex, methodIndex]);
const expectedArgs = callMetadata.args;
const funcName = stringCamelCase(callMetadata.name.toString());
const extrinsicFn = (...args: any[]): Call => {
assert(
expectedArgs.length.valueOf() === args.length,
@@ -95,6 +95,7 @@ describe('createFunction', (): void => {
it('should return correct key', (): void => {
const result = storageFn(['5DXUeE5N5LtkW97F2PzqYPyqNkxqSWESdGSPTX6AvkUAhwKP', '5DXUeE5N5LtkW97F2PzqYPyqNkxqSWESdGSPTX6AvkUAhwKP']);
expect(u8aToHex(result)).toEqual('0xc000fa40e72d7173e69ee54b980345ea01cb81e64258502e0247af4303dee91ec0aec2ecd3a60ab080cff7b52a8f6d543b');
});