Function: setAllowedChainToken(byte[32] _tokenHash, uint256 _chainId, bool _allowed)
This allows owner of the contract to add the hash of allowed token in the _chainId.
Inputs
_tokenHashControl: Full control by owner.
Constraints: N/A.
Impact: The hash of the token allowed to make a deposit.
_chainIdControl: Full control by owner.
Constraints: N/A.
Impact: The
chainIdfrom which the token is allowed.
_allowedControl: Full control by owner.
Constraints: N/A.
Impact: If true, the token is allowed; if false, the token is prohibited from making deposits.
Branches and code coverage
Intended branches
New
_tokenHashwas added successfully.The previously added
_tokenHashwas prohibited successfully.
Negative behavior
Zero hash.
The same hash already allowed.
Caller is not an owner.