Skip to content

Commit

Permalink
state: fix prefix in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Feb 15, 2024
1 parent 03d5d11 commit ed0f8d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/portalnetwork/test/networks/state/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ describe('distance()', () => {
describe('keyType', () => {
const randHash = randomBytes(32)
it('should indentify AccountTrieProof contentKey', () => {
const contentKey = Uint8Array.from([0x10, ...randHash])
const contentKey = Uint8Array.from([0x20, ...randHash])
const type = keyType(contentKey)
assert.equal(type, StateNetworkContentType.AccountTrieNode)
})
it('should indentify ContractStorageTrieProof contentKey', () => {
const contentKey = Uint8Array.from([0x11, ...randHash])
const contentKey = Uint8Array.from([0x21, ...randHash])
const type = keyType(contentKey)
assert.equal(type, StateNetworkContentType.ContractTrieNode)
})
it('should indentify ContractByteCode contentKey', () => {
const contentKey = Uint8Array.from([0x12, ...randHash])
const contentKey = Uint8Array.from([0x22, ...randHash])
const type = keyType(contentKey)
assert.equal(type, StateNetworkContentType.ContractByteCode)
})
Expand Down

0 comments on commit ed0f8d3

Please sign in to comment.