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)
Six test files under
contracts/src/token/test/each define their own label-to-secret helper (secretKey('ALICE')and variants) whilelabelledSecretincontracts/test-utils/concurrency/parties.tsalready 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
labelledSecrettocontracts/test-utils/fixtures/and import it from every token suite in place of the local copies.Raised in #743 review: #743 (comment)