Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ahramy committed Sep 24, 2024
1 parent 564a8d0 commit 1185476
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions contracts/gateway/BaseAmplifierGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ abstract contract BaseAmplifierGateway is IBaseAmplifierGateway {
* @notice Compute the commandId for a message.
* @param sourceChain The name of the source chain as registered on Axelar.
* @param messageId The unique message id for the message.
* @return hash The commandId for the message.
* @return commandId The commandId for the message.
*/
function messageToCommandId(string calldata sourceChain, string calldata messageId)
public
pure
returns (bytes32 hash)
returns (bytes32 commandId)
{
// Axelar doesn't allow `sourceChain` to contain '_', hence this encoding is umambiguous
hash = keccak256(bytes(string.concat(sourceChain, '_', messageId)));
commandId = keccak256(bytes(string.concat(sourceChain, '_', messageId)));
}

/*************************\
Expand Down
4 changes: 2 additions & 2 deletions contracts/interfaces/IBaseAmplifierGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ interface IBaseAmplifierGateway is IAxelarGMPGateway {
* @notice Compute the commandId for a message.
* @param sourceChain The name of the source chain as registered on Axelar.
* @param messageId The unique message id for the message.
* @return hash The commandId for the message.
* @return commandId The commandId for the message.
*/
function messageToCommandId(string calldata sourceChain, string calldata messageId)
external
pure
returns (bytes32 hash);
returns (bytes32 commandId);
}

0 comments on commit 1185476

Please sign in to comment.