Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
test: add property-based tests for romeo asset contract
Browse files Browse the repository at this point in the history
- housekeeping

Keep TypeScript compiler happy.
  • Loading branch information
moodmosaic committed Nov 7, 2023
1 parent 5d4d7b5 commit 650fe88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions romeo/asset-contract/tests/asset_Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ export function AssetCommands(accounts: Map<string, string>) {
.record({
sender: fc.constant(accounts.get("deployer")!),
pubKey: fc.array(fc.integer({ min: 0, max: 255 })
.map(n => n.toString(16).padStart(2, '0')), { minLength: 32, maxLength: 32 })
.map(bytes => '0x' + bytes.join(''))
.map((n: number) => n.toString(16).padStart(2, '0')), { minLength: 32, maxLength: 32 })
.map((bytes: string[]) => '0x' + bytes.join(''))
.map(hexStringToUint8Array),
})
.map((
Expand All @@ -187,8 +187,8 @@ export function AssetCommands(accounts: Map<string, string>) {
.record({
sender: fc.constantFrom(...accounts.values()).filter((a: string) => a !== accounts.get("deployer")!),
pubKey: fc.array(fc.integer({ min: 0, max: 255 })
.map(n => n.toString(16).padStart(2, '0')), { minLength: 32, maxLength: 32 })
.map(bytes => '0x' + bytes.join(''))
.map((n: number) => n.toString(16).padStart(2, '0')), { minLength: 32, maxLength: 32 })
.map((bytes: string[]) => '0x' + bytes.join(''))
.map(hexStringToUint8Array),
})
.map((
Expand Down

0 comments on commit 650fe88

Please sign in to comment.