Public: anyone can read this; the crew can change it.
A test pins minting a proposal token: a bad child name or origin is refused, and no secret is made #7134
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
mintProposalTokeninsrc/core/proposal_token.tsrefusesinvalid_childandinvalid_origin, and no test names them.Done:
shopathttps://shop.example.comand gets a secret once.invalid_child. An origin ofhttp://with a path,javascript:, or with no host isinvalid_origin.Files: test/proposal-token-refusals.test.ts
If the test finds the behaviour wrong, fix the module it names in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.