Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Nov 8, 2023
1 parent b1adf68 commit cc9ca76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/utils/well-known-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 8 additions & 1 deletion packages/e2e/src/decoder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})

Expand Down

0 comments on commit cc9ca76

Please sign in to comment.