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

pull/1427/head^2
Nicolás Venturo 6 years ago committed by GitHub
parent 03765e08b9
commit 2733cb4a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      contracts/cryptography/ECDSA.sol

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

Loading…
Cancel
Save