Fixed TypedData unsigned value range (#3873).

This commit is contained in:
Richard Moore 2023-04-05 04:20:21 -04:00
parent 356ff2becb
commit a851b24d0a
2 changed files with 1 additions and 1 deletions

@ -105,7 +105,7 @@ function getBaseEncoder(type: string): null | ((value: any) => string) {
assertArgument(value >= boundsLower && value <= boundsUpper, `value out-of-bounds for ${ type }`, "value", value);
return toBeHex(toTwos(value, 256), 32);
return toBeHex(signed ? toTwos(value, 256): value, 32);
};
}
}

Binary file not shown.