Skip to content

Commit

Permalink
chore: use named return
Browse files Browse the repository at this point in the history
  • Loading branch information
ahramy committed Sep 24, 2024
1 parent be24c94 commit 21a098e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/InterchainTokenService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ contract InterchainTokenService is
* @return salt The computed salt for the token deployment.
*/
function _getInterchainTokenSalt(bytes32 tokenId) internal pure returns (bytes32 salt) {
return keccak256(abi.encode(PREFIX_INTERCHAIN_TOKEN_SALT, tokenId));
salt = keccak256(abi.encode(PREFIX_INTERCHAIN_TOKEN_SALT, tokenId));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/InterchainTokenDeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ contract InterchainTokenDeployer is IInterchainTokenDeployer, Create3Fixed {
* @return tokenAddress The token address.
*/
function deployedAddress(bytes32 salt) external view returns (address tokenAddress) {
return _create3Address(salt);
tokenAddress = _create3Address(salt);
}
}

0 comments on commit 21a098e

Please sign in to comment.