Skip to content

Commit ed0f8d3

Browse files
committed
state: fix prefix in tests
1 parent 03d5d11 commit ed0f8d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/portalnetwork/test/networks/state/utils.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ describe('distance()', () => {
2222
describe('keyType', () => {
2323
const randHash = randomBytes(32)
2424
it('should indentify AccountTrieProof contentKey', () => {
25-
const contentKey = Uint8Array.from([0x10, ...randHash])
25+
const contentKey = Uint8Array.from([0x20, ...randHash])
2626
const type = keyType(contentKey)
2727
assert.equal(type, StateNetworkContentType.AccountTrieNode)
2828
})
2929
it('should indentify ContractStorageTrieProof contentKey', () => {
30-
const contentKey = Uint8Array.from([0x11, ...randHash])
30+
const contentKey = Uint8Array.from([0x21, ...randHash])
3131
const type = keyType(contentKey)
3232
assert.equal(type, StateNetworkContentType.ContractTrieNode)
3333
})
3434
it('should indentify ContractByteCode contentKey', () => {
35-
const contentKey = Uint8Array.from([0x12, ...randHash])
35+
const contentKey = Uint8Array.from([0x22, ...randHash])
3636
const type = keyType(contentKey)
3737
assert.equal(type, StateNetworkContentType.ContractByteCode)
3838
})

0 commit comments

Comments
 (0)