This commit is contained in:
a_coder_online 2021-02-15 03:31:28 +00:00 committed by GitHub
commit 67fbf7390d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 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) {

View File

@ -82,10 +82,6 @@ contract('RelayerRegistry', (accounts) => {
it('should return correct token amount after stake change')
it('should allow relayer to initiate exit')
it('should prevent unauthorized access', async () => {
await registry.add(relayer1)
await registry.remove(relayer1, { from: accounts[1] }).should.be.rejectedWith('unauthorized')
})
})
describe('#setStake', () => {