Now using hex for asm memory addresses. (#1429)

(cherry picked from commit 2733cb4a41)
This commit is contained in:
Nicolás Venturo
2018-10-17 16:58:36 -03:00
committed by Leo Arias
parent 1cf96ef0d1
commit 56806bb295

View File

@ -33,9 +33,9 @@ library ECDSA {
// currently is to use assembly. // currently is to use assembly.
// solium-disable-next-line security/no-inline-assembly // solium-disable-next-line security/no-inline-assembly
assembly { assembly {
r := mload(add(signature, 32)) r := mload(add(signature, 0x20))
s := mload(add(signature, 64)) s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 96))) v := byte(0, mload(add(signature, 0x60)))
} }
// Version of signature should be 27 or 28, but 0 and 1 are also possible versions // Version of signature should be 27 or 28, but 0 and 1 are also possible versions