ChainSafe/chainbridge-solidity

Modifier onlyAdmin missing in Bridge.sol: add / removeRelayer

peak3d opened this issue · 1 comments

Modifier onlyAdmin missing

function adminAddRelayer(address relayerAddress) external {

Expected Behavior

Adding / removing relayer should be only allowed to admins

Current Behavior

Everyone is allowed to

Possible Solution

Add onlyAdmin modifier

Versions

main branch

P1sar commented

Admin role checked in the granRole function, it is mentioned in functions comment
https://github.com/ChainSafe/chainbridge-solidity/blob/master/contracts/Bridge.sol#L181