diff --git a/packages/type-extrinsics/src/fromMetadata.spec.js b/packages/type-extrinsics/src/fromMetadata.spec.js index e4d2960101..5c695929fb 100644 --- a/packages/type-extrinsics/src/fromMetadata.spec.js +++ b/packages/type-extrinsics/src/fromMetadata.spec.js @@ -20,9 +20,11 @@ describe('fromMetadata', () => { expect(() => newExtrinsics.balances.setBalance('5C62W7ELLAAfix9LYrcx5smtcffbhvThkM5x7xfMeYXCt72s', 2, 3)).not.toThrow(); }); - it('should return the correct storage key', () => { - expect(newExtrinsics.timestamp.set([10101]).toU8a(true)).toEqual( + it('should return properly-encodec trsnactions', () => { + expect(newExtrinsics.timestamp.set([10101]).toU8a()).toEqual( new Uint8Array([ + // length (encoded) + 10 << 2, // index 3, 0, // values