Role library now requires non-zero addresses. (#1303)

* The role library now requires non-zero addresses.

* Fixed SignatureBouncer checks with null address.

* change ternary operator for or operator

* adapt to new variable name convention

* Update Roles.sol
This commit is contained in:
Nicolás Venturo
2018-09-07 13:32:12 -03:00
committed by Francisco Giordano
parent fa49e5189d
commit 6cae0f458d
4 changed files with 29 additions and 15 deletions

View File

@ -132,6 +132,7 @@ contract SignatureBouncer is SignerRole {
address signer = hash
.toEthSignedMessageHash()
.recover(signature);
return isSigner(signer);
return signer != address(0) && isSigner(signer);
}
}