From cc9ca76fe5a08f887c453b4260a4812956f4edf9 Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Wed, 8 Nov 2023 17:58:30 +1300 Subject: [PATCH] fmt --- packages/core/src/utils/well-known-keys.ts | 4 ++-- packages/e2e/src/decoder.test.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/core/src/utils/well-known-keys.ts b/packages/core/src/utils/well-known-keys.ts index 6a16c5da..762e4c4e 100644 --- a/packages/core/src/utils/well-known-keys.ts +++ b/packages/core/src/utils/well-known-keys.ts @@ -57,8 +57,8 @@ const wellKnownKeys = [ const last4Bytes = '0x' + key.slice(-8) return [registry.createType('u32', hexToU8a(last4Bytes)).toJSON()] }, - type: '(u32, u32)' - } + type: '(u32, u32)', + }, ].map((def) => { const prefix = def.prefixHex ?? stringToHex(def.prefix || def.key) return { diff --git a/packages/e2e/src/decoder.test.ts b/packages/e2e/src/decoder.test.ts index c84e907b..ba93fc6b 100644 --- a/packages/e2e/src/decoder.test.ts +++ b/packages/e2e/src/decoder.test.ts @@ -53,7 +53,14 @@ describe('decoder', async () => { ).toMatchSnapshot() expect(decodeKeyValue(meta, chain.head, '0x3a7472616e73616374696f6e5f6c6576656c3a')).toMatchSnapshot() expect(decodeKeyValue(meta, chain.head, '0x3a65787472696e7369635f696e646578', '0x02000000')).toMatchSnapshot() - expect(decodeKeyValue(meta, chain.head, '0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e63f5a4efb16ffa83d0070000', '0x0100000043000000')).toMatchSnapshot() + expect( + decodeKeyValue( + meta, + chain.head, + '0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e63f5a4efb16ffa83d0070000', + '0x0100000043000000', + ), + ).toMatchSnapshot() }) })