Skip to content

Commit af1483c

Browse files
committed
refactor: throw error if network is unsupported
1 parent 836bd4a commit af1483c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/SupportedNetworks.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ contract SupportedNetworks {
111111
/// @return data The router data of the current network.
112112
function getRouterData() public view returns (Data memory data) {
113113
data = _riscZeroVerifierRouters[_supportedNetworks[block.chainid]];
114+
require(address(data.router) != address(0), UnsupportedNetwork({chainId: block.chainid}));
114115
}
115116

116117
// solhint-enable comprehensive-interface

0 commit comments

Comments
 (0)