Skip to content

dev: share one label-to-secret fixture across token tests #862

Description

@0xisk

Six test files under contracts/src/token/test/ each define their own label-to-secret helper (secretKey('ALICE') and variants) while labelledSecret in contracts/test-utils/concurrency/parties.ts already does the same thing. The copies drift in padding and size handling, and a party identity computed in one suite cannot be reused in another.

Move labelledSecret to contracts/test-utils/fixtures/ and import it from every token suite in place of the local copies.

Raised in #743 review: #743 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions