File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
contracts/crosschain/axelar Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ abstract contract AxelarGatewayBase is Ownable {
36
36
/// @dev Returns the equivalent chain given an id that can be either CAIP-2 or an Axelar network identifier.
37
37
function getEquivalentChain (string memory input ) public view virtual returns (string memory output ) {
38
38
output = _chainEquivalence[input];
39
- require (bytes (output).length > 0 , UnsupportedChain (input) );
39
+ if (bytes (output).length == 0 ) revert UnsupportedChain (input);
40
40
}
41
41
42
42
/// @dev Returns the CAIP-10 account address of the remote gateway for a given CAIP-2 chain identifier.
43
43
function getRemoteGateway (string memory caip2 ) public view virtual returns (string memory remoteGateway ) {
44
44
remoteGateway = _remoteGateways[caip2];
45
- require (bytes (remoteGateway).length > 0 , UnsupportedChain (caip2) );
45
+ if (bytes (remoteGateway).length == 0 ) revert UnsupportedChain (caip2);
46
46
}
47
47
48
48
/// @dev Registers a chain equivalence between a CAIP-2 chain identifier and an Axelar network identifier.
You can’t perform that action at this time.
0 commit comments