Fixed TypedData unsigned value range (#3873).
This commit is contained in:
parent
356ff2becb
commit
a851b24d0a
@ -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.
Loading…
Reference in New Issue
Block a user