We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 836bd4a commit af1483cCopy full SHA for af1483c
1 file changed
src/SupportedNetworks.sol
@@ -111,6 +111,7 @@ contract SupportedNetworks {
111
/// @return data The router data of the current network.
112
function getRouterData() public view returns (Data memory data) {
113
data = _riscZeroVerifierRouters[_supportedNetworks[block.chainid]];
114
+ require(address(data.router) != address(0), UnsupportedNetwork({chainId: block.chainid}));
115
}
116
117
// solhint-enable comprehensive-interface
0 commit comments