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 @@ -47,15 +47,15 @@ abstract contract AxelarGatewayBase is Ownable {
47
47
48
48
/// @dev Registers a chain equivalence between a CAIP-2 chain identifier and an Axelar network identifier.
49
49
function registerChainEquivalence (string calldata caip2 , string calldata axelarSupported ) public virtual onlyOwner {
50
- require (bytes (_chainEquivalence[caip2]).length == 0 );
50
+ require (bytes (_chainEquivalence[caip2]).length == 0 , " Chain equivalence already registered " );
51
51
_chainEquivalence[caip2] = axelarSupported;
52
52
_chainEquivalence[axelarSupported] = caip2;
53
53
emit RegisteredChainEquivalence (caip2, axelarSupported);
54
54
}
55
55
56
56
/// @dev Registers a remote gateway address for a given CAIP-2 chain identifier.
57
57
function registerRemoteGateway (string calldata caip2 , string calldata remoteGateway ) public virtual onlyOwner {
58
- require (bytes (_remoteGateways[caip2]).length == 0 );
58
+ require (bytes (_remoteGateways[caip2]).length == 0 , " Remote gateway already registered " );
59
59
_remoteGateways[caip2] = remoteGateway;
60
60
emit RegisteredRemoteGateway (caip2, remoteGateway);
61
61
}
You can’t perform that action at this time.
0 commit comments