Resolve "feat(Primitives): Have Bytes Primitive extends Uint8Array (if possible)"
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { BlockHeader } from '~/src/block-header';
|
||||
import { Bytes } from '~/src/bytes';
|
||||
import { BlockHeader } from '../src/block-header';
|
||||
import { Bytes } from '../src/bytes';
|
||||
|
||||
describe('Success cases', () => {
|
||||
// Test cases with different block header representations
|
||||
@@ -16,11 +16,11 @@ describe('Success cases', () => {
|
||||
{
|
||||
raw: Bytes.fromHex(
|
||||
'0000602093ea70b294aeef69db85981bd387285824fc5af732e487010000000000000000135576e1ba9cae5509d60b4fbb9e66612f35b5ee8db264cb12612d46cc8db60b5e34a164d46b021864abbb1d',
|
||||
).toBytes(),
|
||||
).toUint8Array(),
|
||||
representations: {
|
||||
bytes: Bytes.fromHex(
|
||||
'0000602093ea70b294aeef69db85981bd387285824fc5af732e487010000000000000000135576e1ba9cae5509d60b4fbb9e66612f35b5ee8db264cb12612d46cc8db60b5e34a164d46b021864abbb1d',
|
||||
).toBytes(),
|
||||
).toUint8Array(),
|
||||
hex: '0000602093ea70b294aeef69db85981bd387285824fc5af732e487010000000000000000135576e1ba9cae5509d60b4fbb9e66612f35b5ee8db264cb12612d46cc8db60b5e34a164d46b021864abbb1d',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user