Fixed typo in signature.s error (#3891).
This commit is contained in:
parent
f61ad27a8e
commit
47ef3ebde3
@ -82,7 +82,7 @@ export class Signature {
|
||||
*/
|
||||
get s(): string { return this.#s; }
|
||||
set s(_value: BytesLike) {
|
||||
assertArgument(dataLength(_value) === 32, "invalid r", "value", _value);
|
||||
assertArgument(dataLength(_value) === 32, "invalid s", "value", _value);
|
||||
const value = hexlify(_value);
|
||||
assertArgument(parseInt(value.substring(0, 3)) < 8, "non-canonical s", "value", value);
|
||||
this.#s = value;
|
||||
|
Loading…
Reference in New Issue
Block a user