GSNSignatureBouncer fix (#1920)
* GSNSignatureBoucer does not accept zero address * Linting code. * Update contracts/GSN/bouncers/GSNBouncerSignature.sol Makes sense! Co-Authored-By: Nicolás Venturo <nicolas.venturo@gmail.com> * Update test/GSN/GSNBouncerSignature.test.js ok! Co-Authored-By: Nicolás Venturo <nicolas.venturo@gmail.com> * Add zero address constant from OZ test Helpers * revert prettier formatting
This commit is contained in:
committed by
Francisco Giordano
parent
18473d0100
commit
f9a94788fb
@ -22,6 +22,7 @@ contract GSNBouncerSignature is GSNBouncerBase {
|
||||
* @dev Sets the trusted signer that is going to be producing signatures to approve relayed calls.
|
||||
*/
|
||||
constructor(address trustedSigner) public {
|
||||
require(trustedSigner != address(0), "GSNBouncerSignature: trusted signer is the zero address");
|
||||
_trustedSigner = trustedSigner;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user