Function: setSrcChainId(uint256 chainId)
This allows the owner to set the current chain ID.
Inputs
chainId
Control: Fully controlled by the owner.
Constraints: None.
Impact: The new chain ID.
Branches and code coverage
Intended branches
Sets the
_currentChainId
tochainId
.
Negative behavior
Assumes the
_currentChainId
is identical toblock.chainid
.Should not allow anyone other than the owner to call this function.