Should not need sender to be governance

Should not need  sender to be governance - Anyone can add given that account have required TORN
This commit is contained in:
a_coder_online 2021-02-14 23:09:09 +00:00 committed by GitHub
parent 119299a347
commit 2222ceb36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -21,7 +21,6 @@ contract RelayerRegistry is EnsResolve {
}
function add(bytes32 _relayer) public {
require(msg.sender == governance, "unauthorized");
require(!isRelayer[_relayer], "The relayer already exists");
uint256 _stake = stake;
if (_stake > 0) {