Rewrite yarn.lock (#2127)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user